---
title: "applyingContentHeadroom(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscolor/applyingcontentheadroom(_:)"
---

# applyingContentHeadroom(_:)

Reinterpret the color by applying a new contentHeadroom without changing the color components. Changing the contentHeadroom redefines the color relative to a different peak white, changing its behavior under tone mapping and the result of calling standardDynamicRangeColor. The new color will have a contentHeadroom >= 1.0. If called on a color with a color space that does not support extended range, or does not have an equivalent extended range counterpart, this will return self.

## Declaration

```swift
func applyingContentHeadroom(_ contentHeadroom: CGFloat) -> NSColor
```

## See Also

### Supporting high dynamic range (HDR) colors

- [linearExposure](appkit/nscolor/linearexposure.md)
- [standardDynamicRange](appkit/nscolor/standarddynamicrange.md)
