<!--
{
  "documentType" : "article",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/sampler-option-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Sampler Option Keys"
}
-->

# Sampler Option Keys

Keys for creating a sampler.

## Topics

### Constants

[`kCISamplerAffineMatrix`](/documentation/CoreImage/kCISamplerAffineMatrix)

The key for an affine matrix. The associated value is an `NSArray` object ([*a b c d tx ty*]) that defines the transformation to apply to the sampler.

[`kCISamplerWrapMode`](/documentation/CoreImage/kCISamplerWrapMode)

The key for the sampler wrap mode. The wrap mode specifies how Core Image produces pixels that are outside the extent of the sample. Possible values are [`kCISamplerWrapBlack`](/documentation/CoreImage/kCISamplerWrapBlack) and [`kCISamplerWrapClamp`](/documentation/CoreImage/kCISamplerWrapClamp).

[`kCISamplerFilterMode`](/documentation/CoreImage/kCISamplerFilterMode)

The key for the filtering to use when sampling the image. Possible values are [`kCISamplerFilterNearest`](/documentation/CoreImage/kCISamplerFilterNearest) and [`kCISamplerFilterLinear`](/documentation/CoreImage/kCISamplerFilterLinear).

[`kCISamplerColorSpace`](/documentation/CoreImage/kCISamplerColorSpace)

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



---

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)