representationOfImageReps(in:using:properties:)
Formats the specified bitmap images using the specified storage type and properties and returns them in a data object.
Declaration
class func representationOfImageReps(in imageReps: [NSImageRep], using storageType: NSBitmapImageRep.FileType, properties: [NSBitmapImageRep.PropertyKey : Any]) -> Data?Parameters
- imageReps:
An array of Nsbitmapimagerep objects.
- storageType:
An Filetype constant specifying a file type for bitmap images.
- properties:
A dictionary that contains key-value pairs specifying image properties. These string constants used as keys and the valid values are described in Propertykey.
Return Value
A data object containing the bitmap image data in the specified format. You can write this data to a file or use it to create a new NSBitmapImageRep object.