PeachImage

PeachImage

ImageOrientation Enum

The orientation recorded in an image’s metadata (EXIF tag 0x0112 and its equivalents in other formats), which a viewer applies to the decoded pixels to display the image upright. Decoders never apply it themselves: the pixels and Width/Height are always as stored in the file.

public enum ImageOrientation

Fields

Normal 1

The stored pixels are upright (EXIF 1). Also the value when the file records no orientation.

MirrorHorizontal 2

Mirror horizontally (EXIF 2).

Rotate180 3

Rotate 180 degrees (EXIF 3).

MirrorVertical 4

Mirror vertically (EXIF 4).

Transpose 5

Transpose: mirror across the main diagonal (EXIF 5).

Rotate90 6

Rotate 90 degrees clockwise (EXIF 6).

Transverse 7

Transverse: mirror across the anti-diagonal (EXIF 7).

Rotate270 8

Rotate 270 degrees clockwise, that is 90 counter-clockwise (EXIF 8).

Remarks

The numeric values match the EXIF orientation values 1 to 8. Each name describes how the stored image is transformed to display it upright.