Mobile/Android
Drawable to Bitmap
out of coding
2014. 8. 8. 13:16
Drawable객체를 손쉽게 Bitmap으로 옮길수 있다.
소스는 다음과 같다.
BitmapDrawable drawable = (BitmapDrawable) getResources().getDrawable(R.drawable.icon); Bitmap bitmap = drawable.getBitmap();