Returns a TIFF representation of the image using the specified compression.
- macOS 10.0+
An enum constant that represents a TIFF data-compression scheme. Legal values for
compressioncan be found in
NSBitmapand are described in
Image Rep .h
floatvalue that provides a hint for those compression types that implement variable compression ratios.
Currently only JPEG compression uses a compression factor. JPEG compression in TIFF files is not supported, and
If the compression type isn’t supported for writing TIFF data (for example,
NSTIFFCompression), the stored compression is changed to
NSTIFFCompression before the TIFF representation is generated.