<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImageIO",
  "identifier" : "/documentation/ImageIO/kCGImageDestinationBackgroundColor",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Image I/O"
    ],
    "preciseIdentifier" : "c:@kCGImageDestinationBackgroundColor"
  },
  "title" : "kCGImageDestinationBackgroundColor"
}
-->

# kCGImageDestinationBackgroundColor

The background color to use when the image has an alpha component, but the destination format doesn’t support alpha.

```
let kCGImageDestinationBackgroundColor: CFString
```

## Discussion

If present, the value associated with this key must be a <doc://com.apple.documentation/documentation/CoreGraphics/CGColor> data type without an alpha component of its own. If not present, and if a background color is needed, a white color is used.

---

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)