<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBitmapImageRep/PropertyKey/rgbColorTable",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSImageRGBColorTable"
  },
  "title" : "rgbColorTable"
}
-->

# rgbColorTable

Identifies an `NSData` object containing the RGB color table.

```
static let rgbColorTable: NSBitmapImageRep.PropertyKey
```

## Discussion

Used only for GIF files. It’s stored as packed RGB. It’s set when reading in and used when writing out.

---

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)