loadImage
fun loadImage(buffer: MPPBuffer, name: String? = null, formatHint: ImageFileFormat? = null, allowSRGB: Boolean = true, session: Session? = Session.active): ColorBuffer(source)
expect fun loadImage(fileOrUrl: String, formatHint: ImageFileFormat? = ImageFileFormat.guessFromExtension(fileOrUrl.split(".").last()), allowSRGB: Boolean = true, loadMipmaps: Boolean = true, 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?, allowSRGB: Boolean, loadMipmaps: Boolean, 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), allowSRGB: Boolean = true, loadMipmaps: Boolean = true, session: Session? = Session.active): ColorBuffer(source)
load an image from File
fun loadImage(url: URL, formatHint: ImageFileFormat? = ImageFileFormat.guessFromExtension(url.toExternalForm().split(".").lastOrNull()), allowSRGB: Boolean = true, loadMipmaps: Boolean = true, session: Session? = Session.active): ColorBuffer(source)
load an image from an url
actual fun loadImage(fileOrUrl: String, formatHint: ImageFileFormat?, allowSRGB: Boolean, loadMipmaps: Boolean, session: Session?): ColorBuffer(source)
load an image from a file or url encoded as String, also accepts base64 encoded data urls