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

# ColorSyncProfileEstimateGammaWithDisplayID(_:_:)

Estimates the gamma of the profile for the specified display.

## Declaration

```swift
func ColorSyncProfileEstimateGammaWithDisplayID(_ displayID: Int32, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Float
```

## Parameters

- `displayID`: The system-wide unique display ID (defined by IOKit).
- `error`: On failure, a pointer to an error describing the problem. Optional.

## Return Value

Return Value A non-zero value on success, or 0.0 in case of error.

## See Also

### Reading display gamma and profiles

- [ColorSyncProfileCreateWithDisplayID(_:)](colorsync/colorsyncprofilecreatewithdisplayid(_:).md)
- [ColorSyncProfileGetDisplayTransferFormulaFromVCGT(_:_:_:_:_:_:_:_:_:_:)](colorsync/colorsyncprofilegetdisplaytransferformulafromvcgt(_:_:_:_:_:_:_:_:_:_:).md)
- [ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)](colorsync/colorsyncprofilecreatedisplaytransfertablesfromvcgt(_:_:).md)
