콘텐츠로 이동

ImageOrientation enumeration

이 콘텐츠는 아직 번역되지 않았습니다.

Normalized image orientation whose values match the EXIF Orientation tag (1-8).

public enum ImageOrientation : byte
name value description
Normal 1 No transform. Row 0 is top, column 0 is left.
Identity 1 Alias of Normal for readability where “no orientation” is meant.
MirrorHorizontal 2 Mirror across the vertical axis (flip left-right).
Rotate180 3 Rotate 180 degrees.
MirrorVertical 4 Mirror across the horizontal axis (flip top-bottom).
Transpose 5 Reflect across the main (top-left to bottom-right) diagonal.
Rotate90 6 Rotate 90 degrees clockwise.
Transverse 7 Reflect across the anti (top-right to bottom-left) diagonal.
Rotate270 8 Rotate 90 degrees counter-clockwise (270 clockwise).

A parsed EXIF value maps without an intermediate table, and the diagonal cases (5/7) stay unambiguous: each is a single named transform rather than a rotation and mirror pair whose application order could differ. Raw decoded pixels are never rotated; this value travels as metadata and is applied at draw and layout time by the consumer (see OrientationTransform). Unknown or invalid values normalize to Normal.