MapboxSvgToBitmapParser

class MapboxSvgToBitmapParser(externalFileResolver: SVGExternalFileResolver) : SvgToBitmapParser

Implementation of SvgToBitmapParser that provides a method allowing to convert SVG ByteArray to Bitmap

Constructors

Link copied to clipboard
fun MapboxSvgToBitmapParser(externalFileResolver: SVGExternalFileResolver)

Functions

Link copied to clipboard
open override fun parse(svg: ByteBuffer, options: MapboxSignboardOptions): Expected<String, Bitmap>

The function converts a raw svg in ByteArray to Bitmap using MapboxSignboardOptions specified.