Instance Method

initWithPath:

Initializes a new region using a Core Graphics path.

Declaration

- (instancetype)initWithPath:(CGPathRef)path;

Parameters

path

A path that defines the new region’s shape. The path is assumed to use the even-odd winding rule.

Return Value

A newly initialized region.

See Also

Creating and Initializing Region Objects

+ infiniteRegion

Returns a region that defines a region that includes all points.

- initWithSize:

Initializes a new region with a rectangular area.

- initWithRadius:

Initializes a new region with a circular area.

- inverseRegion

Returns a new region that is the mathematical inverse of an existing region.

- regionByDifferenceFromRegion:

Returns a new region created by subtracting the contents of another region from this region.

- regionByIntersectionWithRegion:

Returns a new region created by intersecting the contents of this region with another region.

- regionByUnionWithRegion:

Returns a new region created by combining the contents of this region with another region.