0

Can anyone tell me that do scaleinto function will work on actual device having older os that 5.0. Bleow is the code.

 public static Bitmap resizeImage(Bitmap originalImage, int newWidth, int newHeight) {
   Bitmap newImage = new Bitmap(newWidth, newHeight);
   originalImage.scaleInto(newImage, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FILL);
  return newImage;
 }
Maneesh
  • 6,098
  • 5
  • 36
  • 55
  • You can take a look at my answer to [this question](http://stackoverflow.com/questions/1769755/blackberry-how-to-resize-image/2268027#2268027) for a way of resizing images that will work on older devices. – Skrud May 20 '10 at 13:47

1 Answers1

1

No, you can see in the API that the scaleInto method was only added in OS 5.0. You will not be able to use it on older devices.

Jonathan
  • 1,735
  • 11
  • 17