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: 1
Registered: ‎06-16-2009
My Device: Not Specified

EncodedImage changes the resolution of image?

Hi all,

 

I'm a newbie to Blackberry java development and I'm developing on JDE 4.6.0 using Blackberry Bold 9000 simulator.

 

I'm requesting a 480x320 image from our server and trying to display it inside our application window in its original resolution. After reading the image data from web server, I create an EncodedImage using the image byte array. Then, I create a BitmapField using this image data and add to the main screen. But, the image is scaled down to a resolution of 314x209.

 

I tried to request a 320x240 image from our server and it is displayed in its original resolution in our application. So the problem arises when I try to request an image with a resolution higher than 320x240, it scales the image down somehow. We checked the image properties on the server, and verified that is is created in the resolution that we requested.

 

Any idea how this might happen and how to resolve this problem?

 

Thanks,