drawResource

Draw a XML Drawable resource to a Bitmap because a XML Drawable not can be decoded by #decodeResource

Return

A transparent bitmap with the drawable painted to it.

Parameters

height

destination height

res

Application Resource

resId

Drawable Resource id.

width

destination width

open fun drawResource(res: Resources, resId: Int, width: Int, height: Int): Bitmap

Draw a XML Drawable resource to a Bitmap because a XML Drawable not can be decoded by #decodeResource

Return

A transparent bitmap with the drawable painted to it.

Parameters

res

Application Resource

resId

Drawable Resource id.

open fun drawResource(res: Resources, resId: Int): Bitmap