Hello,

I want to make a vertical mirror on an image <mx:image
id="displayImage" />
by modifiyng the pixels one by one, but the code is not working.
Could you send me what is wrong:

Thank you,
Christophe, 

The code 
------------------------------------------------------------- 
var data2:BitmapData = Bitmap( displayImage.content).bitmapData;
                                        
var x:int; 
var y:int;
var col:uint; 
for (x = 0; x < 768; x++) 
{ 
   for (y = 0; y < 576; y++) 
   {
     col = data2.getPixel(x, y);
                                                          data2.setPixel(x, 576 
- 1 - y, col);
   }                                                    
}

displayImage.source = new BitmapAsset(data2); 
---------------------------------------------------------


         

Reply via email to