Retrieve a pixel with Alpha set to 255, from a transparent image : BitmapData : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » BitmapData »

 

Retrieve a pixel with Alpha set to 255, from a transparent image


 

package{
  import flash.display.*;
  
  public class Main extends Sprite{
    public function Main(){

        var imgData:BitmapData = new BitmapData(2020, true, 0xFFFFFFFF);
        trace(imgData.getPixel32(00));  // Displays: 4294967295
                                  // (original data was preserved)
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» BitmapData