A data object containing TIFF data for all of the image representations in the receiver.
SDK
- macOS 10.0+
Framework
- App
Kit
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 NSTIFFCompression
, 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 NSBitmap
method representation(using:
.