View Full Version : Capture what is done during a MouseDown event
ckeezer
10-01-2008, 03:28 PM
Ok.. I have a canvas which I am currently able to write to and then save what is written off to a png file.. works like a champ.. problem is that using ImageSnapshot takes a physical snapshot of the area... including the white background.
What I want to do is only get what was drawn during the mousedown event on my canvas. Is that possible? if so, how would I go about doing it?
Thanks,
Chuck
ckeezer
10-02-2008, 04:21 PM
Any ideas floating around out there?
rawmantick
10-02-2008, 05:55 PM
Here is an idea (not sure, you gonna test it).
Instead of canvas you use UIComponent. Add a sprite with nothing drawn on it to theat UIComponent. And dra on the sprite.
After that you can http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html#draw() (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html#draw%28%29)
That's it. But as I've said, I'm not sure... You gonna test it...
ckeezer
10-03-2008, 01:33 PM
looks like my biggest problem is that I am not using BitmapData. I will try what you have suggested, and see if there is anything else out there for an example.
Does anyone know of a good example? or have experience with doing something similar?
Thanks for the help.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.