not sure why the alert didn't show, but myColorWheel.content.bitmapData
should be what yo uneed.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of David Gironella
Sent: Wednesday, October 03, 2007 2:15 PM
To: [email protected]
Subject: [flexcoders] Image control to bitmapdata



I have this function:
 
public function image_complete(evt:Event):void {
        
               bm = myColorWheel.content as Bitmap;
               bmd = new BitmapData(myColorWheel.contentWidth,
myColorWheel.contentHeight);
               bmd.draw(bm);
               mx.controls.Alert.show("bitmap okey");
        }
 
I have this on a complet event in a image control(myColorWheel), with a
source image that load correctly.
 
I have this declared:
 
public var bm:Bitmap;
public var bmd:BitmapData;
 
 
Alert dont show because something dont work, and if i getPixel from bmd
i return nothing.
 
Any suggestion to convert a image control, to bitmapdata where i cant
get pixel information?
 
thk.
 
Giro.
 
 
 
 
 

 

Reply via email to