fromFile

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

create a ColorBuffer from a File containing a formatted image

See also

Parameters

file

a File containing a formatted image

formatHint

an optional ImageFileFormat hint, default is null

session

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

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

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

See also

Parameters

filename

a file containing a formatted image

formatHint

an optional ImageFileFormat hint, default is null

session

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