Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 37
Registered: ‎07-15-2008
My Device: Not Specified

Making an image byte[] size smaller

Hi all,

 

I have no problem scaling an image using EncodedImage.scaleImage32()

However, looking at the actual size of the data, using EncodedImage.getData().length, the scaled image is the same size as the original.

I would actually expect this, given the nature of a scale operation.

However, how can I "save" the scaled version in terms of the real size of the new image as well?

 

I scaled a 2300 byte image to a size that I know is now around 900 bytes, but, I'm stuck with the 2K+ image in memory.