getBitmapFromDrawable

fun getBitmapFromDrawable(context: Context, imageResId: Int): Bitmap

Returns the drawable from imageResId as a Bitmap