Type Method

samplerWithImage:options:

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

Declaration

+ (instancetype)samplerWithImage:(CIImage *)im options:(NSDictionary *)dict;

Parameters

im

The image that you want the sampler to reference.

dict

A dictionary that contains options specified as key-value pairs. See Sampler Option Keys.

Return Value

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

See Also

Creating a Sampler

+ samplerWithImage:

Creates and returns a sampler that references an image.

+ samplerWithImage:keysAndValues:

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