Type Method

imageReps(with:)

Creates and returns an array of initialized NSBitmapImageRep objects corresponding to the images in the supplied data.

Declaration

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

Parameters

bitmapData

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 an NSBitmapImageRep Object

init(cgImage: CGImage)

Returns an NSBitmapImageRep object created from a Core Graphics image object.

init(ciImage: CIImage)

Returns an NSBitmapImageRep object created from a Core Image object.

init?(data: Data)

Initializes a newly allocated NSBitmapImageRep from the provided data.

init?(focusedViewRect: NSRect)

Initializes the receiver, a newly allocated NSBitmapImageRep object, with bitmap data read from a rendered image.

Deprecated
init(forIncrementalLoad: ())

Initializes and returns the receiver, a newly allocated NSBitmapImageRep object, for incremental loading.