In Flex, I use graphics.codec.JPEGEncoder to save image files that are edited inside the application (normal manipulations such as brightness, etc.). I can save files in perfect condition. I want to know that I can save a better resolution image? Say, for example, the image that is being downloaded and processed was originally 72dpi, now I can save it with a resolution of 150 or 300 dpi? If so, how to do it.
No need to use JPEGEncoder, if there is any way to do this at all, for example, using any library, etc., I'm fine. Any suggestions?
Note. If that matters, I use Bitmapdata to store the image and manipulate and save the image using JPEGEncoder, supplying it as a bytearray, as shown below.
var imageBytes:ByteArray = encoder.encode(myBitmapData);
source
share