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.

2 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.

 

Post a Comment

Links to this post:

Create a Link

<< Home