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.
10-10-2012 02:49 AM
See this link for better understanding.
http://supportforums.blackberry.com/t5/Java-Develo
Thanks.
10-12-2012 01:54 AM
Thank you the answer. Helped me a lot.