Dela via


PhotoOrientation Enum

Definition

Indicates the Exchangeable Image File (EXIF) orientation flag of the photo. This flag describes how to rotate the photo to display it correctly.

public enum class PhotoOrientation
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PhotoOrientation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PhotoOrientation
var value = Windows.Storage.FileProperties.PhotoOrientation.unspecified
Public Enum PhotoOrientation
Inheritance
PhotoOrientation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Unspecified 0

An orientation flag is not set.

Normal 1

No rotation needed. The photo can be displayed using its current orientation.

FlipHorizontal 2

Flip the photo horizontally.

Rotate180 3

Rotate the photo 180 degrees.

FlipVertical 4

Flip the photo vertically.

Transpose 5

Rotate the photo counter-clockwise 270 degrees and then flip it horizontally.

Rotate270 6

Rotate the photo counter-clockwise 270 degrees.

Transverse 7

Rotate the photo counter-clockwise 90 degrees and then flip it horizontally.

Rotate90 8

Rotate the photo counter-clockwise 90 degrees.

Applies to

See also