<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContextOption/outputColorSpace",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:@kCIContextOutputColorSpace"
  },
  "title" : "outputColorSpace"
}
-->

# outputColorSpace

A Core Image context option key to specify the default destination color space for rendering.

```
static let outputColorSpace: CIContextOption
```

## Discussion

This option only affects how Core Image renders using the following methods:

- `/CIContext/createCGImage:fromRect:`
- `/CIContext/drawImage:atPoint:fromRect:`
- `/CIContext/drawImage:inRect:fromRect:`

With all other render methods, the destination color space is either specified as a parameter
or can be determined from the object being rendered to.

The value of this option can be either:

- A `CGColorSpace` instance with an RGB or monochrome color model that supports output.
- An `NSNull` instance to indicate that the context should not match from the working space to the destination.

If this option is not specified, then the default output space is sRGB.

---

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)