<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/settingContentHeadroom(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)imageBySettingContentHeadroom:"
  },
  "title" : "settingContentHeadroom(_:)"
}
-->

# settingContentHeadroom(_:)

Create an image by changing the receiver’s contentHeadroom property.

```
func settingContentHeadroom(_ headroom: Float) -> CIImage
```

## Return Value


An autoreleased [`CIImage`](/documentation/CoreImage/CIImage).

## Discussion

Changing this value will alter the behavior of the `CIToneMapHeadroom` and `CISystemToneMap` filters.

- If the value is set to 0.0 then the returned image’s headroom is unknown.
- If the value is set to 1.0 then the returned image is SDR.
- If the value is set to greater 1.0 then the returned image is HDR.
- Otherwise the returned image’s headroom is unknown.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)