25.17. CanvasRenderingContext2D.clip( ): set the clipping path of a canvas25.17.1. Synopsisvoid clip( ) 25.17.2. DescriptionThis 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. |