Instance Method

initWithRect:

Initializes a filter shape object with a rectangle.

Declaration

- (instancetype)initWithRect:(CGRect)r;

Parameters

r

A rectangle. Core Image uses the rectangle specified by integer parts of the values in the CGRect data structure.

Return Value

An initialized CIFilterShape object, or nil if the method fails.

See Also