Contents

representation(using:properties:)

Formats the bitmap representation’s image data using the specified storage type and properties and returns it in a data object.

Declaration

func representation(using storageType: NSBitmapImageRep.FileType, properties: [NSBitmapImageRep.PropertyKey : Any]) -> Data?

Parameters

Return Value

A data object containing the receiver’s image data in the specified format. You can write this data to a file or use it to create a new NSBitmapImageRep object.

See Also

Related Documentation

Producing Other Representations of Images