Bitmap to Drawable

Drawable drawable = new BitmapDrawable(getResources(), bitmap);

 

Drawable to Bitmap

BitmapDrawable drawable = (BitmapDrawable) getResources().getDrawable(R.drawable.icon);

Bitmap bitmap = drawable.getBitmap();

Posted by 소망아기
: