private Bitmap getBitmap(int resid)
{
BitmapFactory.Options opt = new BitmapFactory.Options();
opt.inPreferredConfig = Bitmap.Config.RGB_565;
opt.inPurgeable = true;
opt.inInputShareable = true;
InputStream is = this.getResources().openRawResource(resid);
return BitmapFactory.decodeStream(is, null, opt);
}
{
BitmapFactory.Options opt = new BitmapFactory.Options();
opt.inPreferredConfig = Bitmap.Config.RGB_565;
opt.inPurgeable = true;
opt.inInputShareable = true;
InputStream is = this.getResources().openRawResource(resid);
return BitmapFactory.decodeStream(is, null, opt);
}
2611

被折叠的 条评论
为什么被折叠?



