Exif​Orientation​Mode Exif​Orientation​Mode Exif​Orientation​Mode Exif​Orientation​Mode Enum

Definition

Specifies the EXIF orientation flag behavior when obtaining pixel data.

public : enum class ExifOrientationModepublic enum ExifOrientationModePublic Enum ExifOrientationMode// You can use this enum in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Some image formats, including JPEG, TIFF, and JPEG-XR, support EXIF orientation metadata. This metadata specifies a flip and/or rotation operation that should be applied to the raw image data so it is oriented correctly. You can read the EXIF orientation metadata and apply the corresponding transform yourself, or you can use this enumeration to automatically determine and apply the correct transform.

If you specify RespectExifOrientation, the resulting orientation operation is combined with any flip and rotation operations that you have specified using BitmapTransform.

For example, you call BitmapDecoder::GetPixelDataAsync using RespectExifOrientation and a BitmapRotation value of Clockwise90Degrees, and the particular image being decoded has an EXIF orientation flag specifying a counterclockwise 90 degree rotation. In this example, the ExifOrientationMode and BitmapRotation options are added together for a net rotation of 180 degrees clockwise.

In addition, if you specify RespectExifOrientation along with a clip using BitmapTransform::Bounds, the bounding rectangle must take into account the change in coordinate space from the EXIF orientation operation. You can obtain the full image size after EXIF orientation is applied by using OrientedPixelWidth and OrientedPixelHeight.

Fields

IgnoreExifOrientation IgnoreExifOrientation IgnoreExifOrientation IgnoreExifOrientation

The EXIF orientation flag is ignored. No rotation or flip operations are performed.

RespectExifOrientation RespectExifOrientation RespectExifOrientation RespectExifOrientation

If the image frame contains a valid EXIF orientation flag, the specified rotation and/or flip operations are performed on the pixel data.