loadImage

abstract fun loadImage(fileOrUrl: String, formatHint: ImageFileFormat?): ImageData(source)

Load an image located at fileOrUrl

Return

an ImageData instance that the user must close after use

Since

0.4.5

Parameters

fileOrUrl

a string encoded file location or url

formatHint

a hint for the file format


abstract fun loadImage(buffer: MPPBuffer, name: String?, formatHint: ImageFileFormat?): ImageData(source)

Load an image located at fileOrUrl

Return

an ImageData instance that the user must close after use

Since

0.4.5

Parameters

buffer

an MPPBuffer holding the image data

name

a name that is used in error reporting only

formatHint

a hint for the file format used in buffer