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(20, 20, true, 0xFFFFFFFF);
trace(imgData.getPixel32(0, 0)); // Displays: 4294967295
// (original data was preserved)
}
}
}
Related examples in the same category