Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

clip method

Specifies a new clipping region.

HTML Canvas 2D Context, Section 9Internet Explorer 9

Syntax

CanvasRenderingContext2D.clip(fillRule);

Parameters

fillRule [in, optional]

Type: DOMString

Set to evenodd to use the even-odd fill rule. If missing, uses non-zero winding rule.

Return value

This method does not return a value.

Standards information

Remarks

The clip method creates a new clipping region by calculating the intersection of the current clipping region and the area that the current path describes.

Starting with Internet Explorer 11 this method provides an optional parameter to use the non-zero winding number rule or the even-odd rule. Earlier versions of this method offer only the default non-zero winding number rule. The new clipping region replaces the current clipping region.

See also

CanvasRenderingContext2D
msFillRule

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.