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

我已經在上面的代碼中創建了圖像。現在,如何在初始創建後更改圖像大小?創建後編輯圖像大小

回答

0

你可以改變你的圖像視圖的屬性是這樣的:

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