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.