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
|