Create a BitmapData, then call draw on it passing in the thing you want
stored.  You can then even turn it into a PNG before you send it off
(see PNGEncoder attached).

Matt
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of wujunjr
Sent: Wednesday, March 29, 2006 5:24 AM
To: [email protected]
Subject: [flexcoders] Re: how to get the Bitmap/BitmapData of controls

I have a similar question.

How to get the image as part of the screen and save it to local disk/or 
server side (maybe using java)?

Thanks a lot!

--- In [email protected], "feiyhy" <[EMAIL PROTECTED]> wrote:
>
> somebody can tell me how to get the Bitmap/BitmapData of a
> control,such as the Button's BitmapData?
> 
> i know the Image control's Bitmap is the first child of it,so where is
> it of other controls?
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Attachment: PNGEncoder.as
Description: PNGEncoder.as

Reply via email to