ExifOrientationMode enumeration

ExifOrientationMode enumeration

Specifies the EXIF orientation flag behavior when obtaining pixel data.


var value = Windows.Graphics.Imaging.ExifOrientationMode.ignoreExifOrientation;


The ExifOrientationMode enumeration has these members.

IgnoreExifOrientation | ignoreExifOrientation0

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

RespectExifOrientation | respectExifOrientation1

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


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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0


Windows::Graphics::Imaging [C++]



Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]


Windows::Graphics::Imaging [C++]





See also




© 2016 Microsoft