setImageFile

fun setImageFile(file: File, resetMatrices: Boolean = true)

Sets the image to display from a file, decoded by regions.

Parameters

file

file containing the encoded image.

resetMatrices

true to reset transformation matrices, false otherwise.

Throws

if the file cannot be read or its format is not supported.