The affine transform for changing the image to the given orientation.
SDKs
- iOS 11.0+
- macOS 10.13+
- tvOS 11.0+
Framework
- Core Image
Declaration
func orientationTransform(for orientation: CGImage Property Orientation) -> CGAffine Transform
Discussion
Returns a CGAffine
for the CGImage
value to apply to the image.