---
title: "ColorSyncProfileEstimateGamma(_:_:)"
framework: colorsync
role: symbol
role_heading: Function
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 13.0+, macOS 10.13+, tvOS 16.0+, visionOS 1.0+, watchOS 9.0+]
path: "colorsync/colorsyncprofileestimategamma(_:_:)"
---

# ColorSyncProfileEstimateGamma(_:_:)

Estimates the gamma of a profile.

## Declaration

```swift
func ColorSyncProfileEstimateGamma(_ prof: ColorSyncProfile!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Float
```

## Parameters

- `prof`: The profile to perform estimation on.
- `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

### Inspecting color characteristics

- [ColorSyncProfileIsWideGamut(_:)](colorsync/colorsyncprofileiswidegamut(_:).md)
- [ColorSyncProfileIsPQBased(_:)](colorsync/colorsyncprofileispqbased(_:).md)
- [ColorSyncProfileIsHLGBased(_:)](colorsync/colorsyncprofileishlgbased(_:).md)
- [ColorSyncProfileIsMatrixBased(_:)](colorsync/colorsyncprofileismatrixbased(_:).md)
- [ColorSyncProfileVerify(_:_:_:)](colorsync/colorsyncprofileverify(_:_:_:).md)
