I have a strange problem... I'm looping over a bitmap, and getpixel never returns a value below hex 808080, even if the value should be pure black. Pure white returns FFFFFF, only values below 808080 pose problems. Has anyone seen this behaviour???
Wim
you should be using something like the following.
var bmd:BitmapData = new BitmapData(mc.width,mc.height,true,0x00000000);
var mat:Matrix = mc.transform.concatenatedMatrix;
mat.tx=0;
mat.ty=0;
bmd.draw(mc,mat);
stage.addEventListener(MouseEvent.CLICK,clickF);
function clickF(e:MouseEvent):void{
trace(bmd.getPixel32(e.stageX-mc.x,e.stageY-mc.y).toString(16));
}
North America
Europe, Middle East and Africa
Asia Pacific