---
title: CISampler
framework: coreimage
role: symbol
role_heading: Class
path: coreimage/cisampler
---

# CISampler

An object that retrieves pixel samples for processing by a filter kernel.

## Declaration

```swift
class CISampler
```

## Overview

Overview The CISampler class retrieves samples of images for processing by a CIKernel object. A CISampler object defines a coordinate transform, and modes for interpolation and wrapping. You use CISampler objects in conjunction with other Core Image classes, such as  CIFilter, CIKernel, and CIFilterShape, to create custom filters.

## Topics

### Initializing a Sampler

- [init(image:)](coreimage/cisampler/init(image:).md)
- [init(image:options:)](coreimage/cisampler/init(image:options:).md)

### Getting Information About the Sampler Object

- [definition](coreimage/cisampler/definition.md)
- [extent](coreimage/cisampler/extent.md)

### Constants

- [Sampler Option Keys](coreimage/sampler-option-keys.md)
- [Sampler Option Values](coreimage/sampler-option-values.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Custom Filters

- [Writing Custom Kernels](coreimage/writing-custom-kernels.md)
- [CIKernel](coreimage/cikernel.md)
- [CIColorKernel](coreimage/cicolorkernel.md)
- [CIWarpKernel](coreimage/ciwarpkernel.md)
- [CIBlendKernel](coreimage/ciblendkernel.md)
- [CIFilterShape](coreimage/cifiltershape.md)
- [CIFormat](coreimage/ciformat.md)
