/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.utils/MapUtils/getBitmapFromDrawable

getBitmapFromDrawable

\ fun getBitmapFromDrawable(context: Context, drawableRes: Int, width: Int, height: Int, color: Int): Bitmap

Converts a drawable resource to a bitmap with specified width, height, and color.

Return

The generated bitmap.

Parameters

androidJvm

context The application context.
drawableRes The drawable resource ID.
width The width of the bitmap.
height The height of the bitmap.
color The color to apply as a tint.