BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-19-2009, 09:04 AM   #1 (permalink)
New Member
 
Join Date: Jun 2008
Model: 8707
PIN: N/A
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!

Hi,

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
Offline  
Old 05-19-2009, 09:41 AM   #2 (permalink)
BlackBerry Mensa
 
MidnightDraven's Avatar
 
Join Date: Jan 2009
Location: Chester,UK
Model: 9000
PIN: N/A
Carrier: Tesco Mobile
Posts: 9,481
Post Thanks: 2
Thanked 110 Times in 110 Posts
Default

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."
Offline  
Old 05-19-2009, 09:45 AM   #3 (permalink)
Thumbs Must Hurt
 
datl's Avatar
 
Join Date: Mar 2009
Model: 8820
PIN: N/A
Carrier: ORANGE
Posts: 84
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Mindmapping + BlackBerry = ???
Offline  
Old 05-22-2009, 10:36 PM   #4 (permalink)
BBF Spam Killer Moderator
 
daphne's Avatar
 
Join Date: May 2007
Location: on a sunny beach
Model: Z30
OS: 10.2.1.12
PIN: X1ZPY34K
Carrier: VZW
Posts: 9,169
Post Thanks: 122
Thanked 146 Times in 116 Posts
Default

Moved to Developer Forum.
__________________
Report spam text messages to 7726
#BlackBerry by choice #BlacBerry 10 is here!
Offline  
Old 05-23-2009, 03: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
Default

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()
Offline  
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 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.