Type Method

samplerWithImage:keysAndValues:

Creates and returns a sampler that references an image using options specified as key-value pairs.

Declaration

+ (instancetype)samplerWithImage:(CIImage *)im keysAndValues:(id)key0, ...;

Parameters

im

The image that you want the sampler to reference.

key0

A list of key-value pairs that represent options. Each key needs to be followed by that appropriate value. You can supply one or more key-value pairs. Use nil to specify the end of the key-value options. See Sampler Option Keys.

Return Value

A sampler that references the image specified by the im argument and uses the specified options.

See Also

Creating a Sampler

+ samplerWithImage:

Creates and returns a sampler that references an image.

+ samplerWithImage:options:

Creates and returns a sampler that references an image using options specified in a dictionary.