openrndr / org.openrndr.draw / loadImage

loadImage

fun loadImage(fileOrUrl: String, formatHint: ImageFileFormat? = null, session: Session? = Session.active): 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? = null, session: Session? = Session.active): ColorBuffer (source)

load an image from File

fun loadImage(url: URL, formatHint: ImageFileFormat?, session: Session? = Session.active): ColorBuffer (source)

load an image from an url