---
title: ColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveInfoDictionary
framework: colorsync
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: colorsync/colorsyncprofilecreatecopywithheadroomadaptivegaincurveinfodictionary
---

# ColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveInfoDictionary

Returns a copy of a profile with an HAGC tag synthesized from an info dictionary.

## Declaration

```occ
extern ColorSyncProfileRefColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveInfoDictionary(ColorSyncProfileRef profile, CFDictionaryRef info);
```

## Parameters

- `profile`: A profile whose CICP tag indicates a PQ, HLG, or linear transfer function. (Use linear for extended-range data.) Passing an SDR profile returns NULL.
- `info`: A dictionary describing the gain curve. See the key constants declared below for its structure.

## Return Value

Return Value A new profile that the caller must release with CFRelease, or NULL on failure.

## See Also

### Attaching a curve (C API)

- [ColorSyncProfileCreateCopyWithHeadroomAdaptiveGainCurveMetadata](colorsync/colorsyncprofilecreatecopywithheadroomadaptivegaincurvemetadata.md)
