读书人

Reduce Bit地图 size using Bit地图Fa

发布时间: 2012-08-13 13:21:53 作者: rapoo

Reduce Bitmap size using BitmapFactory.Options.inSampleSize

In the post "Load ImageView with JPG file in SD Card", the ImageView is loaded with bitmap in full-size. It cost too much resources for a mobile device, and easy to make the app closed unexpectly.

We can generate a shrinked bitmap using?BitmapFactory.Optionswith inSampleSize; such that to reduce the needed resources greatly.

}

读书人网 >移动开发

热点推荐