Thanks Sidney - can't believe I missed it in the docs. - k
On 3 Nov 2010, at 14:22, Sidney de Koning - Funky Monkey Studios wrote: > Hi Karim, > > Something along the lines of this: > > var bmd:BitmapData = new BitmapData(80, 40, true, 0xFF44AACC); > > var pixelValue:uint = bmd.getPixel32(0, 0); > var alphaValue:uint = pixelValue >> 24 & 0xFF; > var red:uint = pixelValue >> 16 & 0xFF; > var green:uint = pixelValue >> 8 & 0xFF; > var blue:uint = pixelValue & 0xFF; > > trace(alphaValue.toString(16)); // ff > trace(red.toString(16)); // 44 > trace(green.toString(16)); // aa > trace(blue.toString(16)); // cc > > Also check > http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#getPixel32%28%29 > > Cheers, > > Sidney > > > >> Hello All - >> >> anyone can point me in the right direction to get the alpha component of >> getPixel32 ? >> >> Thanks >> >> >> Karim >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > -- > Sidney de Koning - "If you're not prepared to be wrong, you'll never come > up with something original" > Flash / AIR Developer @ www.funky-monkey.nl > Actionscript 3 Teacher @ www.sae.nl > Technical Writer @ www.insideria.com > Blogger @ www.funky-monkey.nl/blog/ > > 3GB free storage you can sync with your mobile device or Mac or PC. > Check out https://www.getdropbox.com/referrals/NTI1MjcxMzk > > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

