Enumeration Case

CGImagePropertyOrientation.upMirrored

The encoded image data is horizontally flipped from the image's intended display orientation.

Declaration

case upMirrored = 2

Discussion

The (x,y) pixel coordinates of the origin point (0,0) represent the rightmost column and top row, respectively. Pixel (x,y) positions increase right-to-left, top-to-bottom.

If an image is encoded with this orientation, then displayed by software unaware of orientation metadata, the image appears horizontally mirrored.

Figure 1

Correcting image data with upMirrored orientation for display

To correct an image with upMirrored orientation for display, flip it horizontally.

See Also

Image Orientations

case up

The encoded image data matches the image's intended display orientation.

case down

The encoded image data is rotated 180° from the image's intended display orientation.

case downMirrored

The encoded image data is vertically flipped from the image's intended display orientation.

case leftMirrored

The encoded image data is horizontally flipped and rotated 90° counter-clockwise from the image's intended display orientation.

case right

The encoded image data is rotated 90° clockwise from the image's intended display orientation.

case rightMirrored

The encoded image data is horizontally flipped and rotated 90° clockwise from the image's intended display orientation.

case left

The encoded image data is rotated 90° clockwise from the image's intended display orientation.