loadImage

fun loadImage(buffer: MPPBuffer, name: String? = null, formatHint: ImageFileFormat? = null, session: Session? = Session.active): ColorBuffer(source)


expect fun loadImage(fileOrUrl: String, formatHint: ImageFileFormat? = ImageFileFormat.guessFromExtension(fileOrUrl.split(".").last()), session: Session? = Session.active): ColorBuffer(source)

load an image from a file or url encoded as String, also accepts base64 encoded data urls

actual fun loadImage(fileOrUrl: String, formatHint: ImageFileFormat?, session: Session?): ColorBuffer(source)

load an image from a file or url encoded as String, also accepts base64 encoded data urls

fun loadImage(file: File, formatHint: ImageFileFormat? = ImageFileFormat.guessFromExtension(file.extension), session: Session? = Session.active): ColorBuffer(source)

load an image from File


fun loadImage(url: URL, formatHint: ImageFileFormat? = ImageFileFormat.guessFromExtension(url.toExternalForm().split(".").lastOrNull()), session: Session? = Session.active): ColorBuffer(source)

load an image from an url


actual fun loadImage(fileOrUrl: String, formatHint: ImageFileFormat?, session: Session?): ColorBuffer(source)

load an image from a file or url encoded as String, also accepts base64 encoded data urls