10.04.2006

Save out bitmapData to JPG

I've seen several examples of saving a bitmapData object out as a JPG. Most of the examples would freeze while parsing the huge pixel information. So I wrote a class that delays the parsing and dispatches progress. This way you can update the user on the processing progress, rather than have the application freeze for several seconds. Check it out. And as always, right-click to view/download the source.

Don't pay attention too much to the crappy drawing tools built into this. Maybe we'll have a better drawing app for a future example. This example is more for the bitmapData to JPG conversion.

5 Comments:

At 4/17/07 3:14 PM, Anonymous Ricky said...

very nice

 
At 4/20/07 2:06 PM, Anonymous Anonymous said...

this is very cool. when i try to use it though on my own server, my output jpg is just a white jpeg. so i don't think i am capturing any pixel information.

 
At 3/11/09 1:20 AM, Anonymous Anonymous said...

I'm trying to look at the source but the source code for savejpg.php seems to be a broken link.

 
At 4/3/09 10:26 AM, Blogger blinds said...

Can you post the php code, too.

Thanks so much for sharing!

 
At 6/26/09 3:02 AM, Blogger Milan said...

Hello guys, very nice example! Here is also a server side code in C#: http://blog.3datweb.com/post/Flex-snapshot-saving-picture-with-NET-C.aspx

 

Post a Comment

Links to this post:

Create a Link

<< Home