Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

clip method

Specifies a new clipping region.

HTML Canvas 2D Context, Section 9Internet Explorer 9

Syntax


object.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 ICanvasRenderingContext2D::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

msFillRule

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.