Class

CISampler

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

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: CIImage)

Initializes a sampler with an image object.

init(image: CIImage, options: [AnyHashable : Any]? = nil)

Initializes the sampler with an image object using options specified in a dictionary.

Getting Information About the Sampler Object

var definition: CIFilterShape

The domain of definition (DOD) of the sampler

var extent: CGRect

The rectangle that specifies the extent of the sampler

Constants

Sampler Option Keys

Keys for creating a sampler.

Sampler Option Values

Values for sampler option keys.

Relationships

Inherits From

See Also

Custom Filters

class CIKernel

A GPU-based image processing routine used to create custom Core Image filters.

class CIColorKernel

A GPU-based image processing routine that processes only the color information in images, used to create custom Core Image filters.

class CIWarpKernel

A GPU-based image processing routine that processes only the geometry information in an image, used to create custom Core Image filters.

class CIBlendKernel

A GPU-based image processing routine that is optimized for blending two images.