init(data:options:)
Initializes an image object with the supplied image data, using the specified options.
Declaration
init?(data: Data, options: [CIImageOption : Any]? = nil)Parameters
- data:
The image data. The data you supply must be premultiplied.
- options:
A dictionary specifying image options. (See
Image Dictionary Keys.)
Return Value
The initialized image object, or nil if the object could not be initialized.
See Also
Creating an Image
empty()init(image:)init(image:options:)init(contentsOf:)init(contentsOf:options:)init(cgImage:)init(cgImage:options:)init(cgImageSource:index:options:)init(data:)init(bitmapData:bytesPerRow:size:format:colorSpace:)init(bitmapImageRep:)init(imageProvider:size:_:format:colorSpace:options:)init(depthData:)init(depthData:options:)init(portaitEffectsMatte:)