create bitmap drawable android 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);