首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

Reduce Bit地图 size using Bit地图Factory.Options.inSampleSize

2012-08-13 
Reduce Bitmap size using BitmapFactory.Options.inSampleSizeIn the post Load ImageView with JPG fil

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.

}

热点排行