Specifies a new clipping region.
![]() |
Syntax
CanvasRenderingContext2D.clip();Parameters
This method has no parameters.
Return value
This method does not return a value.
Standards information
- HTML Canvas 2D Context, Section 9
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, by using the non-zero winding number rule. The new clipping region replaces the current clipping region.
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012
.png)
.png)