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.

Inheritors

Functions

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

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