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;
 }
4

1 回答 1

1

不,您可以在API中看到 scaleInto 方法仅在 OS 5.0 中添加。您将无法在旧设备上使用它。

于 2010-05-20T13:27:44.890 回答