init(CGImage:)
Creates an image object from the specified Core Graphics image.
Declaration
convenience init(CGImage imageRef: CGImage)convenience init(cgImage imageRef: CGImage)Parameters
- imageRef:
A Core Graphics image that contains the image data to use.
Return Value
An image object that contains the specified Core Graphics image, or nil if that image is invalid.