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
nilif the class is unable to create an image representation. ThebitmapDataparameter 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
colorize(byMappingGray:to:blackMapping:whiteMapping:)init(bitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:)init(bitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:)init(cgImage:)init(ciImage:)init(data:)init(forIncrementalLoad:)init(focusedViewRect:)