Instance Property

tiffRepresentation

A TIFF representation of the bitmap image data.

Declaration

var tiffRepresentation: Data? { get }

Discussion

Accessing this property results in a call to the tiffRepresentation(using:factor:) method using the stored compression type and factor retrieved from the initial image data or changed using the setCompression(_:factor:) method. If the stored compression type isn’t supported for writing TIFF data (for example, NSTIFFCompressionNEXT), the stored compression is changed to NSTIFFCompressionNone before calling the tiffRepresentation(using:factor:) method using the compression that’s returned by getCompression(_:factor:) (if applicable).

If a problem is encountered during generation of the TIFF, an NSTIFFException or an badBitmapParametersException is raised.

See Also

Producing Representations of the Image

class func tiffRepresentationOfImageReps(in: [NSImageRep]) -> Data?

Returns a TIFF representation of the given images

class func tiffRepresentationOfImageReps(in: [NSImageRep], using: NSBitmapImageRep.TIFFCompression, factor: Float) -> Data?

Returns a TIFF representation of the given images using a specified compression scheme and factor.

func tiffRepresentation(using: NSBitmapImageRep.TIFFCompression, factor: Float) -> Data?

Returns a TIFF representation of the image using the specified compression.

class func representationOfImageReps(in: [NSImageRep], using: NSBitmapImageRep.FileType, properties: [NSBitmapImageRep.PropertyKey : Any]) -> Data?

Formats the specified bitmap images using the specified storage type and properties and returns them in a data object.

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

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