Android BitmapとDrawableの切り替え
Bitmap to Drawableの変換
Drawable to Bitmapの変換
BitmapDrawable bitmapDrawable = (BitmapDrawable)bitmap;
Drawable drawable = (Drawable)bitmapDrawable;
Bitmap bitmap = new Bitmap (...);
Drawable drawable = new BitmapDrawable(bitmap);
Drawable to Bitmapの変換
Drawable mydDrawable = getBackground();
Bitmap image = ((BitmapDrawable)mydDrawable).getBitmap();