Question

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;
 }
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top