imageToDataUrl

abstract fun imageToDataUrl(imageData: ImageData, formatHint: ImageFileFormat?): String(source)

Convert an image to a data-url

Since

0.4.5

Parameters

imageData

an ImageData instance holding the pixel data to be converted

formatHint

the format to use in the generated data-url