<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBitmapImageRep/getTIFFCompressionTypes(_:count:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBitmapImageRep(cm)getTIFFCompressionTypes:count:"
  },
  "title" : "getTIFFCompressionTypes(_:count:)"
}
-->

# getTIFFCompressionTypes(_:count:)

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

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

## Parameters

`list`

On return, a C array of [`NSBitmapImageRep.TIFFCompression`](/documentation/AppKit/NSBitmapImageRep/TIFFCompression) constants. This array belongs to the [`NSBitmapImageRep`](/documentation/AppKit/NSBitmapImageRep) class; it shouldn’t be freed or altered. See [`NSBitmapImageRep.TIFFCompression`](/documentation/AppKit/NSBitmapImageRep/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`](/documentation/AppKit/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)