10-09-2012 01:23 PM
What would be the most efficient way to resize an image in BlackBerry ?
Suppose there is an image with dimensions of 700x700 and I wish to scale it down to 300x300 ?
I am scaling it down, so quality of the picture should not be a problem I guess.
Solved! Go to Solution.
10-10-2012 01:26 AM
Hi to resize image , Follow this code.
Bitmap myBmp = new Bitmap ( 300 , 300); <Your 700 bitmap image >.scaleInto(myBmp, Bitmap.FILTER_BILINEAR);
This code works fine , untill you dont have transparency in Bitmap image. if you will resize an transparent image , transparent part will be filled by white space.