ICanvasRenderingContext2DClip Method (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.

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
void Clip(
	Path2D path,
	CanvasFillRule fillRule


Type: Aspose.Html.Dom.CanvasPath2D
A Path2D path to clip.
Type: Aspose.Html.Dom.CanvasCanvasFillRule
The algorithm by which to determine if a point is inside a path or outside a path.
See Also