카테고리 없음

[android] drawable을 bitmap으로 변환하기

manywaypark 2012. 6. 13. 11:28

그냥 casting하면 된다.

Bitmap bitmap = ((BitmapDrawable)d).getBitmap();


refs:

http://stackoverflow.com/questions/3035692/how-to-convert-a-drawable-to-a-bitmap

http://sdw8001.tistory.com/21 -> bitmap, canvas, drawable 개념


happy hacking'