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

Posts: 33
Registered: ‎10-14-2009
My Device: Not Specified

Need help to Stretch BitmapField

Hi Guys,

I am adding bitmap as a bitmap field,

Now i need to stretch that image in the case if image length or width is greater than Screen size


Example, if image len = 300,height = 600 ( default screen size is 360-480)

so in this case,

I need to stretch the image by 2

i do it by using EncodedImage.SetScale();


But i have problem by displaying it in the middle.

That is,

now the image has 150*300


so it should display by starting at (105,90) & end by (255,390)




|                          |

|       Img            |

|___________|  (255,390)


I want to display like this


Hope that the problem is clear.


I donot have much exposure to blackberry

Just started learning nowadays and its my assignment

I need some one to help me