Companion

object Companion

Functions

fromArray
Link copied to clipboard
fun fromArray(bytes: ByteArray, offset: Int = 0, length: Int = bytes.size, formatHint: ImageFileFormat?, session: Session? = Session.active): ColorBuffer

create a ColorBuffer from a ByteArray containing a formatted image (meaning any of the formats in ImageFileFormat)

fromBuffer
Link copied to clipboard
fun fromBuffer(bytes: ByteBuffer, formatHint: ImageFileFormat?, session: Session? = Session.active): ColorBuffer

create a ColorBuffer from a ByteBuffer holding a formatted image (meaning any of the formats in ImageFileFormat

fromFile
Link copied to clipboard
fun fromFile(file: File, formatHint: ImageFileFormat? = null, session: Session? = Session.active): ColorBuffer

create a ColorBuffer from a File containing a formatted image

fun fromFile(filename: String, formatHint: ImageFileFormat?, session: Session? = Session.active): ColorBuffer

create a ColorBuffer from a file indicated by filename containing a formatted image

fromStream
Link copied to clipboard
fun fromStream(stream: InputStream, formatHint: ImageFileFormat? = null, session: Session? = Session.active): ColorBuffer

create a ColorBuffer from an InputStream containing a formatted image

fromUrl
Link copied to clipboard
fun fromUrl(url: String, formatHint: ImageFileFormat? = null, session: Session? = Session.active): ColorBuffer

create a ColorBuffer from a File containing a formatted image