imageWithData:
Creates and returns an image object initialized with the supplied image data.
Declaration
+ (CIImage *) imageWithData:(NSData *) data;Parameters
- data:
The data object that holds the contents of an image file (such as TIFF, GIF, JPG, or whatever else the system supports). The image data must be premultiplied.
Return Value
An image object initialized with the supplied data, or nil if the method cannot create an image representation from the contents of the supplied data object.
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:)init(data:)imageWithData:options: