1 person found this helpful
While you can write bitmap data to a file, it would no longer be a JPG file. If these resized images are only displayed in your AIR application (and you have lots of disk space), this would work. You might be able to find a faster 3rd party JPG encoding library.
Also, you don't say what else your application does, but I imagine that there are already native utilities that can resize and re-encode images fairly fast (ImageMagick, for example). In AIR 2, you could call a utility such as ImageMagick to do the resizing.
My bad, it's pretty obvious that when I have bitmap data it's no longer stored as jpeg data and I can't save it as jpeg on disk.
My problem was solved by very efficient 3rd party jpeg encoding library: http://segfaultlabs.com/devlogs/alchemy-asynchronous-jpeg-encoding.
Currently I'm trying to compile it's latest version because the version I have now has some memory leaks. Wish me luck
Moved discussion to the Adobe AIR Development forum