Contents

imageReps(with:)

Creates and returns an array of bitmap image representation objects that correspond to the images in the specified data.

Declaration

class func imageReps(with data: Data) -> [NSImageRep]

Parameters

  • data:

    A data object containing one or more bitmapped images or nil if the class is unable to create an image representation. The bitmapData parameter can contain data in any supported bitmap format.

Return Value

An array of NSBitmapImageRep instances or an empty array if the class is unable to create any image representations.

See Also

Creating Bitmap Representations of Images