Contents

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