SvgToBitmapParser

fun interface SvgToBitmapParser

An interface that exposes a function to allow the conversion of svg in a raw ByteArray format to Expected format that either holds a Bitmap if the conversion is successful or an error if it is not.

Functions

Link copied to clipboard
abstract fun parse(svg: ByteArray, options: MapboxSignboardOptions): Expected<String, Bitmap>

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

Inheritors

Link copied to clipboard