---
title: kCISamplerColorSpace
framework: coreimage
role: symbol
role_heading: Global Variable
path: coreimage/kcisamplercolorspace
---

# kCISamplerColorSpace

The key for the color space to use when sampling the image.

## Declaration

```swift
let kCISamplerColorSpace: String
```

## Discussion

Discussion The associated value must be an RGB CGColorSpace object. Using this option specifies that samples should be converted to this color space before being passed to a kernel. If not specified, samples will be passed to the kernel in the working color space of the Core Image context used to render the image.

## See Also

### Constants

- [kCISamplerAffineMatrix](coreimage/kcisampleraffinematrix.md)
- [kCISamplerWrapMode](coreimage/kcisamplerwrapmode.md)
- [kCISamplerFilterMode](coreimage/kcisamplerfiltermode.md)
