Get pixel data from BitmapData
package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var imgData:BitmapData = new BitmapData(20, 20, false, 0x330000FF);
trace(imgData.getPixel32(0, 0)); // Displays: 4278190335
// (Alpha is 0xFF, not 0x33)
}
}
}
Related examples in the same category