BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 05-19-2009, 08:04 AM   #1 (permalink)
New Member
Join Date: Jun 2008
Model: 8707
Carrier: Vodafone
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How to resize the Image as Device Specific Width and Height

Please Login to Remove!


I have Made 1 Bitmap image which is used to display based on its width and height...
but the i want to display the image as per the Device Width and Height ..
so how should i resize it as per the device specific from the original image?

As i m stucked over here ....
pls provide any code snippet or any link or any solution .....

Thanks Mishal
Old 05-19-2009, 08:41 AM   #2 (permalink)
BlackBerry Mensa
MidnightDraven's Avatar
Join Date: Jan 2009
Location: Chester,UK
Model: 9000
Carrier: Tesco Mobile
Posts: 9,481
Post Thanks: 2
Thanked 110 Times in 110 Posts

do you know the device screen width and height?
bitmap made in paint on microsoft OS?

open the image, go to resize the area of the "canvas" and look in the bottom right corner, it gives the widthxheight pixel size.
move until these numbers match the pixel width/height of your screen.
~Midnight Draven

"That's it then. Cancel the kitchen scraps for lepers and orphans, no more merciful beheadings... and call off Christmas."
Old 05-19-2009, 08:45 AM   #3 (permalink)
Thumbs Must Hurt
datl's Avatar
Join Date: Mar 2009
Model: 8820
Carrier: ORANGE
Posts: 84
Post Thanks: 0
Thanked 0 Times in 0 Posts

Prepare a custom bitmap for each screen resolution may be an option.
I love BlackBerry and God creates it.

Mindmapping + BlackBerry = ???
Old 05-22-2009, 09:36 PM   #4 (permalink)
BBF Spam Killer Moderator
daphne's Avatar
Join Date: May 2007
Location: on a sunny beach
Model: Paspt
Carrier: VZW but not for long
Posts: 9,172
Post Thanks: 122
Thanked 149 Times in 118 Posts

Moved to Developer Forum.
Report spam text messages to 7726
#BlackBerry by choice
Old 05-23-2009, 02:08 AM   #5 (permalink)
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Post Thanks: 0
Thanked 0 Times in 0 Posts

I described how to resize a bitmap on the blackberry a while back: Resizing a Bitmap on the Blackberry | Coderholic

You can get the screen size with Display.getWidth/Height()
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.