2012-01-02 62 views
0
var imageDisplayed = Ti.UI.createImageView({ 
    image : somefile.png, 
    height:'100', 
    width:'100' 
}); 

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

回答

0

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

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