Instance Method

orientationTransform(for:)

The affine transform for changing the image to the given orientation.

Declaration

func orientationTransform(for orientation: CGImagePropertyOrientation) -> CGAffineTransform

Discussion

Returns a CGAffineTransform for the CGImagePropertyOrientation value to apply to the image.

See Also

Working with Orientation

func oriented(CGImagePropertyOrientation) -> CIImage

Transforms the original image by a given CGImagePropertyOrientation and returns the result.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software