Contents

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 compression can be found in Tiffcompression.

  • factor:

    A float value 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 factor is 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.

See Also

Producing Other Representations of Images