fromStream

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

create a ColorBuffer from an InputStream containing a formatted image

Parameters

stream

an InputStream holding a formatted image

formatHint

optional ImageFileFormat hint, default is null

session

the Session under which to create this ColorBuffer