toBitmap
open override fun toBitmap(resources: Resources, desiredHeight: Int?): Bitmap?
Content copied to clipboard
Invoke the method to convert RouteShield.MapboxDesignedShield.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 and width are obtained from RouteShield.MapboxDesignedShield.shieldSprite associated with the shield.