get drawable from bitmap code 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);