Contents

getTIFFCompressionTypes(_:count:)

Returns by indirection an array of all available compression types that can be used when writing a TIFF image.

Declaration

class func getTIFFCompressionTypes(_ list: UnsafeMutablePointer<UnsafePointer<NSBitmapImageRep.TIFFCompression>?>, count numTypes: UnsafeMutablePointer<Int>)

Parameters

  • list:

    On return, a C array of Tiffcompression constants. This array belongs to the Nsbitmapimagerep class; it shouldn’t be freed or altered. See Tiffcompression for the supported TIFF compression types.

  • numTypes:

    The number of constants in list.

Discussion

Note that not all compression types can be used for all images: NSBitmapImageRep.TIFFCompression.next can be used only to retrieve image data. Because future releases may include other compression types, always use this method to get the available compression types—for example, when you implement a user interface for selecting compression types.

See Also

Managing Compression Types