Contents

init(data:)

Initializes an image object with the supplied image data.

Declaration

init?(data: Data)

Parameters

  • data:

    The image data. The data you supply must be premultiplied.

Return Value

The initialized image object, or nil if the object could not be initialized.

See Also

Creating an Image