Contents

init(data:)

Initializes a newly allocated bitmap image representation from the specified data.

Declaration

init?(data: Data)

Parameters

  • data:

    A data object containing image data. The contents of bitmapData can be any supported bitmap format. For TIFF data, the Nsbitmapimagerep is initialized from the first header and image data found in bitmapData.

Return Value

Returns an initialized NSBitmapImageRep if the initialization was successful or nil if it was unable to interpret the contents of bitmapData.

See Also

Creating Bitmap Representations of Images