Bitmap与Drawable之间的相互转换
Bitmap转Drawable:
mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.a6);
mDrawable = new BitmapDrawable(mBitmap);
Drawable转换Bitmap:
BitmapDrawable mBitmapDrawable = (BitmapDrawable) mDrawable;
mBitmapDrawable.getBitmap() ;