drawable To Bitmap
Converts the given drawable to a bitmap.
Return
Bitmap resulting from the conversion of the given drawable.
Parameters
context
Context of the application environment.
drawableId
ID of the drawable to be converted to a bitmap.