Flex 4 ~ assing BitmapData to Image

這例子是用 BitmapData 物件assing圖片到Image物件~


Action Script
var bd:BitmapData = new BitmapData(imageCav.width,imageCav.height);
PreviewImage.source = new Bitmap(bd);



MXML
<mx:Image id="PreviewImage" x="95" y="16" width="280" height="220" />

沒有留言: