fromBuffer

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

Parameters

bytes

a ByteBuffer containing a formatted image

formatHint

an optional ImageFileFormat hint

session

the Session under which this ColorBuffer should be created, default is Session.active