开发者

Do Bitmap.scaleInto() function will work on older version of blackberry actual device

开发者 https://www.devze.com 2022-12-30 19:39 出处:网络
Can anyone tell me that do scaleinto functionwill work on actual device having older os that 5.0. Bleow is the code.

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 开发者_C百科Bitmap(newWidth, newHeight);
   originalImage.scaleInto(newImage, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FILL);
  return newImage;
 }


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消