openrndr / org.openrndr.draw / loadImage

loadImage

fun loadImage(fileOrUrl: String, session: Session? = Session.active): ColorBuffer (source)

loads an image from a file or url encoded as String, also accepts base64 encoded dat urls

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

loads an image from file

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

loads an image from an url