View Single Post
Old 02-03-2006, 05:18 PM   #1
ecarmody
Thumbs Must Hurt
 
Join Date: Apr 2005
Location: Portland, OR., USA
Model: 9800
Carrier: AT&T
Posts: 82
Default Resizing an image

Please Login to Remove!

Hi all,

From what I can figure out, I can resize a bitmap by setting the scale factor on a call to Bitmap.createBitmapFromBytes().
The issue I have with this is that the scale factor is a whole integer value. If an image is a little too big for the screen, the next scale value (2) makes it too small leaving white space around the border. I don't need to skew it, but at least the widest side should fit evenly to the screen.

Is there another approach to resizing an image to get a better fit? I'm looking for a java progamtic approach, not resizing an image using an editor.

Thanks for any comments.
Cheers,
Eric
Offline