Undefined Enum Entry

Undefined

No orientation is known, so the image is displayed exactly as stored.

EXIF value 0.

Properties

name

val name: String

ordinal

val ordinal: Int

Functions

areDimensionsSwapped

fun areDimensionsSwapped(): Boolean

Whether this orientation exchanges the image’s width and height.

ensure

fun ensure(default: ScanOrientation = Normal): ScanOrientation

Returns this orientation, or default when it is unset or invalid.

isDefined

fun isDefined(): Boolean

Whether an orientation is actually known, as opposed to unset or invalid.

isDisplay

fun isDisplay(): Boolean

Whether the image can be displayed as stored, needing no rotation.

isValid

fun isValid(): Boolean

Whether this is a real orientation rather than the Invalid sentinel.

rotate180dg

fun rotate180dg(): ScanOrientation

Returns this orientation turned a half turn.

rotateCCW

fun rotateCCW(): ScanOrientation

Returns this orientation turned a quarter turn anticlockwise.

rotateCW

fun rotateCW(): ScanOrientation

Returns this orientation turned a quarter turn clockwise.

toInt

fun toInt(): Int

Returns the EXIF integer this orientation corresponds to.

Top