parse

open override fun parse(svg: ByteArray, options: MapboxSignboardOptions): Expected<String, Bitmap>

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

Return

Expected contains Bitmap if successful or error otherwise.

Parameters

svg

raw data in ByteArray

options

additional option to format the svg.