---
title: "ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)"
framework: colorsync
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.0+, macOS 10.13+]
path: "colorsync/colorsyncprofilecreatedisplaytransfertablesfromvcgt(_:_:)"
---

# ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)

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

## Declaration

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

## Discussion

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.

## See Also

### Reading display gamma and profiles

- [ColorSyncProfileCreateWithDisplayID(_:)](colorsync/colorsyncprofilecreatewithdisplayid(_:).md)
- [ColorSyncProfileEstimateGammaWithDisplayID(_:_:)](colorsync/colorsyncprofileestimategammawithdisplayid(_:_:).md)
- [ColorSyncProfileGetDisplayTransferFormulaFromVCGT(_:_:_:_:_:_:_:_:_:_:)](colorsync/colorsyncprofilegetdisplaytransferformulafromvcgt(_:_:_:_:_:_:_:_:_:_:).md)
