tiffRepresentationOfImageReps(in:using:factor:)
Returns a TIFF representation of the specified images using the specified compression scheme and factor.
Declaration
class func tiffRepresentationOfImageReps(in array: [NSImageRep], using comp: NSBitmapImageRep.TIFFCompression, factor: Float) -> Data?Parameters
- array:
An array containing objects representing bitmap image representations.
- comp:
An enum constant that represents a TIFF data-compression scheme. Legal values for
compressioncan be found in Tiffcompression. - factor:
A
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
factoris ignored.
Return Value
A data object containing a TIFF image representation.
Discussion
If the specified compression isn’t applicable, no compression is used. If a problem is encountered during generation of the TIFF, the method raises an NSTIFFException or an NSBadBitmapParametersException.