var b:Bitmap = new Bitmap(); var a:Label = new Label(); a.height=100; a.width=100; var d:BitmapData = new BitmapData(a.width,a.height,false); d.draw(a); b = new Bitmap(d); rawChildren.addChild(b);
----- Original Message ---- From: Paul Decoursey <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, January 25, 2008 1:54:43 PM Subject: Re: [flexcomponents] Re: Make a Label a Bitmap Are you setting transparent to true when you create the BitmapData? I would assume so because that is the default. On Jan 25, 2008, at 11:55 AM, honoraryvato wrote: Thank you for the BitmapData.draw( ) tip. But now I have another problem with it. When I make the Bitmap, the background is white. So it is black text with a big white box around it. It should be showing through blue. Is there a way to make the white background of the Bitmap transparent? --- In flexcomponents@ yahoogroups. com, "Mike Krotscheck" <mkrotscheck@ ...> wrote: > > Absolutely- check out the documentation for BitmapData.draw( ). Just be > very careful- bitmapdata objects aren't automatically Garbage Collected, > you have to explicitly call dispose() to keep them from sticking around. > > Michael Krotscheck > Senior Developer > > RESOURCE INTERACTIVE > www.resource. com > mkrotscheck@ ... > > We support privacy and confidentiality. Please delete this email if it was received in error. > > What's new :: > Capitalize on the social web | The Open Brand, a new book by Kelly Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand. com > > > > -----Original Message----- > From: flexcomponents@ yahoogroups. com > [mailto:flexcomponents@ yahoogroups. com] On Behalf Of honoraryvato > Sent: Thursday, January 24, 2008 1:23 PM > To: flexcomponents@ yahoogroups. com > Subject: [flexcomponents] Make a Label a Bitmap > > Is there as way in Flex 2 for me to cast a Label as a Bitmap or to make > a Bitmap copy of a Label? I have a Panel that fades in and out. > On that Panel is a Label. Since the font is not embeded the text in the > Label stays where it is and does not fade. I do not want to embed the > font. I need to make is a Bitmap so it can fade in and out. Does anyone > know how to do this or have a piece of code I can take a look at? > > > > > Yahoo! Groups Links > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
