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
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, 08: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, 08: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, 09:36 PM   #4 (permalink)
BBF Spam Killer Moderator
 
daphne's Avatar
 
Join Date: May 2007
Location: on a sunny beach
Model: Paspt
OS: 10.3.0.90
PIN: X1ZPY34K
Carrier: VZW but not for long
Posts: 9,172
Post Thanks: 120
Thanked 146 Times in 115 Posts
Default

Moved to Developer Forum.
__________________
Report spam text messages to 7726
#BlackBerry by choice
Offline  
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
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

Snow Cone Syrup BLACKBERRY Flavor. 1 GALLON JUG Buy Direct Licensed MFG
$21.95
Snow Cone Syrup BLACKBERRY Flavor. 1 GALLON JUG Buy Direct Licensed MFG pictureLipstick W/Lipliner Blackberry
$5.13
Lipstick W/Lipliner Blackberry pictureZebra ZQ520 Bluetooth IOS, Android, WM, BlackBerry Compatible - ZQ52-AUE0000-00
$595.0
Zebra ZQ520 Bluetooth IOS, Android, WM, BlackBerry Compatible - ZQ52-AUE0000-00 pictureHm9sherlock 221b Case Cover fits Apple Samsung HTC BB Sony Nx Nk
$19.0
Hm9sherlock 221b Case Cover fits Apple Samsung HTC BB Sony Nx Nk pictureHm9shawn mendes Case Cover fits Apple Samsung HTC BB Sony Nx Nk
$19.0
Hm9shawn mendes Case Cover fits Apple Samsung HTC BB Sony Nx Nk picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.