imageWithData:options:
Creates and returns an image object initialized with the supplied image data, using the specified options.
Declaration
+ (CIImage *) imageWithData:(NSData *) data options:(NSDictionary<NSString *,id> *) options;Parameters
- data:
A pointer to the image data. The data must be premultiplied.
- options:
A dictionary specifying image options. (See
Image Dictionary Keys.)
Return Value
An image object initialized with the supplied data and set up with 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:)imageWithCGImage:options:init(cgImage:options:)imageWithCGImageSource:index:options:init(cgImageSource:index:options:)imageWithData:init(data:)