How to copy something as a pastable bitmap in flash?
So I have simple mxml project – empty page with a panel on it.
I want to be able to select some region on my panel and copy it somehow as bitmap pastable to photoshop, word and other programms.
How to do such thing? (libs, articles etc)
Edit – It may be not possible in FP10 but in FP 10.1 you can have it=)
See BETA ActionScript 3.0 Reference for the Adobe Flash Platform 10.1
Not in the best way ever but any way what’s so ever
- first use ClipboardFormats –
HTML_FORMAT (which IS supported
by FP10) - Create some template HTML
- Embed your BitmapData to it (Use Encoders)
- Now you can paste it in to Word and some other programms
You can’t do that with Flex/Flash, but you can take a snapshot and save that to the filesystem and import that image to photoshop etc. Here’s an example:
If you use AIR, you can save Bitmaps to the Clipboard. Check out this advanced AIR Clipboard Application.
You also might be able to do the following:
<img/>tag in HTML(not sure if that’s possible)
It looks like you can’t even copy images to the clipboard in javascript. If you’re on a Mac, you can use this:
Command+Ctrl+Shift+4.Hope that helps,
Lance