fromDrawable

open fun fromDrawable(context: Context, drawableResource: Int): Bitmap

Generate a bitmap from an drawableResource XML drawable

Return

generated bitmap

Parameters

context

The context to use

drawableResource

drawable resource to generate a bitmap from