Initializes an image object with a Quartz 2D image.
SDKs
- iOS 5.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Core Image
Declaration
init(cgImage image: CGImage)
Parameters
image
A Quartz 2D image (
CGImage
) object. For more information, see Quartz 2D Programming Guide and CGImage.
Return Value
The initialized image object.