创建后编辑图像大小

Edit image size after creation

本文关键字:图像 编辑 创建      更新时间:2023-09-26
var imageDisplayed = Ti.UI.createImageView({
  image : somefile.png,
  height:'100',
  width:'100'
});

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

你可以像这样改变你的图像视图的属性:

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