Contents

Image.Orientation

The orientation of an image.

Declaration

@frozen enum Orientation

Overview

Many image formats such as JPEG include orientation metadata in the image data. In other cases, you can specify image orientation in code. Properly specifying orientation is often important both for displaying the image and for certain kinds of image processing.

In SwiftUI, you provide an orientation value when initializing an Image from an existing CGImage.

Topics

Getting image orientations

Getting mirrored image orientation

See Also

Configuring an image