【问题标题】:Edit image size after creation创建后编辑图像大小
【发布时间】:2012-01-02 08:40:47
【问题描述】:
var imageDisplayed = Ti.UI.createImageView({
  image : somefile.png,
  height:'100',
  width:'100'
});

我在上面的代码中创建了图像。现在,如何在初始创建后更改图像大小?

【问题讨论】:

    标签: javascript image titanium


    【解决方案1】:

    您可以像这样更改图像视图的属性:

    imageDisplayed.height = 120;
    imageDisplayed.width = 120;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-13
      • 2016-07-31
      • 2018-05-17
      • 1970-01-01
      • 1970-01-01
      • 2017-12-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多