Enumeration
列挙
Image.Orientation
The orientation of an image.
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
case up
A value that indicates the original pixel data matches the image’s intended display orientation.
case down
A value that indicates a 180° rotation of the image from the orientation of its original pixel data.
case left
A value that indicates a 90° counterclockwise rotation from the orientation of its original pixel data.
case right
A value that indicates a 90° clockwise rotation of the image from the orientation of its original pixel data.
Getting Mirrored Image Orientation
case upMirrored
A value that indicates a horizontal flip of the image from the orientation of its original pixel data.
case downMirrored
A value that indicates a vertical flip of the image from the orientation of its original pixel data.
case leftMirrored
A value that indicates a 90° clockwise rotation and horizontal flip of the image from the orientation of its original pixel data.
case rightMirrored
A value that indicates a 90° counterclockwise rotation and horizontal flip from the orientation of its original pixel data.
Getting All Orientations
typealias AllCases
A type that can represent a collection of all values of this type.
ある型、それはこの型の全ての値からなるあるコレクションを表すことができます。
Creating an Orientation
typealias RawValue
The raw type that can be used to represent all values of the conforming type.
準拠している型の全ての値を表すために使われることができる生の型。
Default Implementations
省略時実装
See Also
参照
Image Fundamentals
enum Scale
A scale to apply to vector images relative to text.
enum ResizingMode
The modes that SwiftUI uses to resize an image to fit within its containing view.