Instance Method

initWithImage:keysAndValues:

Initializes the sampler with an image object using options specified as key-value pairs.

Declaration

- (instancetype)initWithImage:(CIImage *)im keysAndValues:(id)key0, ...;

Parameters

im

The image object to initialize the sampler with.

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.

See Also

Initializing a Sampler

- initWithImage:

Initializes a sampler with an image object.

- initWithImage:options:

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