[flexcoders] copying bitmap data

2007-03-21 Thread tosadavemgr
I have a canvas in my layout and the application allows dragging and dropping items into the canvas. I need to be able to grab a bitmap of the canvas when the user is finished, so I can display the drawing on another panel, and in the FlexPrintJob function. I've tried using this code, initiated

Re: [flexcoders] copying bitmap data

2007-03-21 Thread Troy Gilbert
Yeah, the problem is that the Canvas container only allows children that implement IUIComponent. It would have been real nice if Adobe had provided a raw container that did no layout of its children (but implemented IUIComponent itself), but they didn't. Fortunately, Grant Skinner has provided

Re: [flexcoders] copying bitmap data

2007-03-21 Thread Rick Schmitty
I made a similar app, I didnt know about DisplayObjectWrapper, I'm just using a Canvas (the api shows it allows DisplayObject for addChild method, yes?) but try changing your line: var bmp:Bitmap = new Bitmap(myBitmapData); to: var bmp:Bitmap = new Bitmap(myBitmapData.clone()); Thats the only

RE: [flexcoders] copying bitmap data

2007-03-21 Thread Giles Roadnight
@yahoogroups.com Subject: Re: [flexcoders] copying bitmap data I made a similar app, I didnt know about DisplayObjectWrapper, I'm just using a Canvas (the api shows it allows DisplayObject for addChild method, yes?) but try changing your line: var bmp:Bitmap = new Bitmap(myBitmapData); to: var

RE: [flexcoders] copying bitmap data

2007-03-21 Thread Ely Greenfield
9:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] copying bitmap data Yeah, the problem is that the Canvas container only allows children that implement IUIComponent. It would have been real nice if Adobe had provided a raw container that did no layout of its children