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
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
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
@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
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
5 matches
Mail list logo