<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ColorSync",
  "identifier" : "/documentation/ColorSync/ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "c:@F@ColorSyncProfileCreateDisplayTransferTablesFromVCGT"
  },
  "title" : "ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)"
}
-->

# ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)

Creates display transfer tables from the profile’s `vcgt` tag.

```
func ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_ profile: ColorSyncProfile!, _ nSamplesPerChannel: UnsafeMutablePointer<Int>!) -> Unmanaged<CFData>?
```

## Discussion

Creates three tables of floats (a red table, a green table, and a blue table), each of size
`nSamplesPerChannel`, packed into contiguous memory contained in the returned `CFDataRef`, from
the `vcgt` tag of the profile (if a `vcgt` tag exists in the profile). `CGSetDisplayTransferByTable`
uses these tables.

---

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)