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,173
Post Thanks: 120
Thanked 147 Times in 116 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

1pc useed Panasonic 400W server MBDDT2210L05
$401.26
1pc useed Panasonic 400W server MBDDT2210L05 pictureBlack Server 3 Pocket Waitress Waist Apron Frog Sticks Name FREE Lady Pizazz
$10.0
Black Server  3 Pocket Waitress Waist Apron Frog Sticks  Name FREE Lady Pizazz picture1PC used ASUS P7F-X server motherboard 1156 needle
$258.0
1PC used ASUS P7F-X server motherboard 1156 needle pictureBlack Server Waiter Waitress 3 Pocket Waist Apron Eggs Name FREE Lady Pizazz
$10.0
Black Server Waiter Waitress 3 Pocket Waist Apron Eggs Name FREE Lady Pizazz picture Blsck Server Waitress Apron Waist Apron Glitter Heels Name FREE Lady Pizazz
$10.0
 Blsck Server  Waitress Apron Waist Apron Glitter Heels Name FREE Lady Pizazz picture






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