convert bitmap drawable to 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);