oriented(forExifOrientation:)
Returns a new image created by transforming the original image to the specified EXIF orientation.
Declaration
func oriented(forExifOrientation orientation: Int32) -> CIImageParameters
- orientation:
An integer specifying an image orientation according to the EXIF specification. For details, see Kcgimagepropertyorientation.
Return Value
An image object representing the result of rotating or mirroring the image to the target orientation.
Discussion
This method determines and then applies the transformation needed to reorient the image to the specified orientation. If you plan to also apply other transformations, you can retrieve the transformation this method would use by calling the orientationTransform(forExifOrientation:) method.
See Also
Creating an Image by Modifying an Existing Image
applyingFilter(_:parameters:)applyingFilter(_:)transformed(by:)transformed(by:highQualityDownsample:)cropped(to:)clampedToExtent()clamped(to:)composited(over:)convertingWorkingSpaceToLab()convertingLabToWorkingSpace()matchedToWorkingSpace(from:)matchedFromWorkingSpace(to:)premultiplyingAlpha()unpremultiplyingAlpha()settingAlphaOne(in:)