Instance Property

tiffRepresentation

A data object containing TIFF data for all of the image representations in the receiver.

Declaration

var tiffRepresentation: Data? { get }

Discussion

Use the value of this property to write the TIFF data to a file. For each image representation, this property uses the TIFF compression option associated with that representation or NSTIFFCompressionNone, if no option is set.

If one of the receiver's image representations does not support the creation of TIFF data natively (PDF and EPS images, for example), this property creates the TIFF data from that representation's cached content. This property contains nil if the TIFF data cannot be created.

Additional image formats can be saved by using the NSBitmapImageRep method representation(using:properties:).

See Also

Producing TIFF Data for the Image

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

Returns a data object containing TIFF data with the specified compression settings for all of the image representations in the receiver.