init(cgImage:options:)
Initializes an image object with a Quartz 2D image, using the specified options.
Declaration
init(cgImage image: CGImage, options: [CIImageOption : Any]? = nil)Parameters
- image:
A Quartz 2D image (Cgimage) object. For more information, see TP30001066 and Cgimage.
- options:
A dictionary specifying image options. (See
Image Dictionary Keys.)
Return Value
The initialized image object.
See Also
Creating an Image
empty()init(image:)init(image:options:)init(contentsOf:)init(contentsOf:options:)init(cgImage:)init(cgImageSource:index:options:)init(data:)init(data:options:)init(bitmapData:bytesPerRow:size:format:colorSpace:)init(bitmapImageRep:)init(imageProvider:size:_:format:colorSpace:options:)init(depthData:)init(depthData:options:)init(portaitEffectsMatte:)