toBitmap

open override fun toBitmap(resources: Resources, desiredHeight: Int?): Bitmap?

Invoke the method to convert RouteShield.MapboxLegacyShield.byteArray to Bitmap.

Parameters

desiredHeight

desired height of the bitmap in pixel. Width is calculated automatically to maintain the aspect ratio. If not specified, height is defaulted to 36dp