ICanvasRenderingContext2D.Clip

Clip()

Creates a new clipping region by calculating the intersection of the current clipping region and the area described by the path, using the non-zero winding number rule. Open subpaths must be implicitly closed when computing the clipping region, without affecting the actual subpaths. The new clipping region replaces the current clipping region.

public void Clip()

See Also


Clip(CanvasFillRule)

Creates a new clipping region by calculating the intersection of the current clipping region and the area described by the path, using the non-zero winding number rule. Open subpaths must be implicitly closed when computing the clipping region, without affecting the actual subpaths. The new clipping region replaces the current clipping region.

public void Clip(CanvasFillRule fillRule)
ParameterTypeDescription
fillRuleCanvasFillRuleThe algorithm by which to determine if a point is inside a path or outside a path

See Also


Clip(Path2D, CanvasFillRule)

Creates a new clipping region by calculating the intersection of the current clipping region and the area described by the path, using the non-zero winding number rule. Open subpaths must be implicitly closed when computing the clipping region, without affecting the actual subpaths. The new clipping region replaces the current clipping region.

public void Clip(Path2D path, CanvasFillRule fillRule)
ParameterTypeDescription
pathPath2DA Path2D path to clip.
fillRuleCanvasFillRuleThe algorithm by which to determine if a point is inside a path or outside a path.

See Also