Bitmap to Drawable, Drawable to Bitmap
Android/Tips 2014. 7. 24. 17:55 |Bitmap to Drawable
Drawable drawable = new BitmapDrawable(getResources(), bitmap);
Drawable to Bitmap
BitmapDrawable drawable = (BitmapDrawable) getResources().getDrawable(R.drawable.icon);
Bitmap bitmap = drawable.getBitmap();
'Android > Tips' 카테고리의 다른 글
[Eclipse] Tags 활용법 (TODO, FIXME, XXX....) (0) | 2014.07.24 |
---|---|
JavaDoc 주석 만들기 (0) | 2014.07.24 |
Long타입의 파일사이즈를 Formatting 하는 함수 (0) | 2014.07.24 |
Thread 구현하기 2/2 (with AsyncTask & ProgressBar) (0) | 2014.07.24 |
Thread 구현하기 1/2 (with ProgressBar) (0) | 2014.07.24 |