var baselineBits:BitmapData = new BitmapData(reader.content.width,
reader.content.height);
   baselineBits.draw(reader.content, new Matrix());


________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Firdosh Tangri
Sent: Friday, March 02, 2007 7:32 PM
To: [email protected]
Subject: [flexcomponents] Get bitmapData from Image control



when I load an image using mxml

<mx:Image  id="reader" source="assets/bp1_tb.jpg" scaleContent="true"
                                click="loadBluePrint(event);" />


and then on the click event I want to manipulate the bitmap image how do
I convert the 

img.content ( which is either a Loader object or a DisplayObject to a
Bitmap or a BitmapData object ??


thanks
cheers :)
firdosh



 

Reply via email to