Enumeration Case

UIImage.Orientation.leftMirrored

The image has been rotated 90° clockwise and flipped horizontally from the orientation of its original pixel data.

Declaration

case leftMirrored = 6

Discussion

If an image is encoded with this orientation, then displayed by software unaware of orientation metadata, the image appears to be horizontally mirrored, then rotated 90° counter-clockwise. (That is, to present the image in its intended orientation, you can rotate it 90° clockwise, then flip horizontally.)

Figure 1

Correcting image data with leftMirrored orientation for display

To correct an image with leftMirrored orientation for display, rotate it 90° clockwise then flip it horizontally.

See Also

Image Orientations

case up

The original pixel data matches the image's intended display orientation.

case down

The image has been rotated 180° from the orientation of its original pixel data.

case left

The image has been rotated 90° counterclockwise from the orientation of its original pixel data.

case right

The image has been rotated 90° clockwise from the orientation of its original pixel data.

case upMirrored

The image has been horizontally flipped from the orientation of its original pixel data.

case downMirrored

The image has been vertically flipped from the orientation of its original pixel data.

case rightMirrored

The image has been rotated 90° counterclockwise and flipped horizontally from the orientation of its original pixel data.