leak의 가능성이 있는 BitmapFactory보다는 BitmapDrawable을 쓰는 편이 안전.
BitmapDrawable drawable =
(BitmapDrawable) getResources().getDrawable(R.drawable.icon);
Bitmap bitmap = drawable.getBitmap();
BitmapDrawable.getBitmap() 의 결과값은 final 이므로 수정불가.
수정하고 싶을때는 copy로 인스턴스를 얻는다.
Bitmap bitmap = drawable.getBitmap().copy(Config.ARGB_8888, true);