imageWithCGImage:options:
Creates and returns an image object from a Quartz 2D image using the specified options.
Declaration
+ (CIImage *) imageWithCGImage:(CGImageRef) image options:(NSDictionary<NSString *,id> *) options;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
An image object initialized with the contents of the Quartz 2D image and the specified options.
See Also
Creating an Image
empty()init(image:)init(image:options:)init(contentsOf:)imageWithContentsOfURL:init(contentsOf:options:)imageWithContentsOfURL:options:imageWithCGImage:init(cgImage:)init(cgImage:options:)imageWithCGImageSource:index:options:init(cgImageSource:index:options:)imageWithData:init(data:)imageWithData:options: