标签:
1,drawable转bitmap
// 获取待处理的图像
方法1
BitmapDrawable tmpBitDra = (BitmapDrawable) getResources().getDrawable(R.drawable.ic_launcher);
Bitmap tmpBit = tmpBitDra.getBitmap();
方法2
final Bitmap bitmap=BitmapFactory.decodeResource(getResources(), R.drawable.XXX);
标签:
原文地址:http://www.cnblogs.com/sangxiang/p/4856869.html