August 2006
Intermediate to advanced
1018 pages
34h 13m
English
CanvasRenderingContext2D.clip( ): set the clipping path of a canvas
void clip( )
This method clips the current path using the current clipping
path and then uses the clipped path as the new clipping path. Note
that there is no way to enlarge the clipping path. If you want a
temporary clipping path, you should first call save( ) in order to use restore( ) to restore the original
clipping path. The default clipping path for a canvas is the canvas
rectangle itself.
This method resets the current path so that it is empty.
Read now
Unlock full access