drawable to bitmap android example
Example: get bitmap from drawable
Bitmap icon = BitmapFactory.decodeResource(context.getResources(),
R.drawable.icon_resource);
Bitmap icon = BitmapFactory.decodeResource(context.getResources(),
R.drawable.icon_resource);