Orientation

How a decoded image relates to the scene it was captured from: the EXIF Orientation tag (TIFF tag 274), which phone cameras write instead of physically rotating pixels. A portrait photo is usually stored landscape with Rotate90 set, so anything that draws raw decoded pixels shows it sideways.

KiteBitmap.oriented applies one of these; ImageInfo.orientation and KiteImage.decode(applyOrientation = true) are where they come from.

The exifValues are the wire numbers 1..8. Anything else in a file is treated as Normal, which is what every renderer does with garbage here.

Entries

Link copied to clipboard

Stored as displayed.

Link copied to clipboard

Mirrored left-to-right.

Link copied to clipboard

Upside down.

Link copied to clipboard

Mirrored top-to-bottom.

Link copied to clipboard

Mirrored across the main diagonal (transpose): rows become columns.

Link copied to clipboard

Rotate a quarter turn clockwise to display.

Link copied to clipboard

Mirrored across the anti-diagonal (transverse).

Link copied to clipboard

Rotate a quarter turn counter-clockwise to display.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

True when applying this swaps width and height (Transpose, Rotate90, Transverse, Rotate270). Useful for laying out before you decode.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.