Section 25.17. CanvasRenderingContext2D.clip( ): set the clipping path of a canvas


25.17. CanvasRenderingContext2D.clip( ): set the clipping path of a canvas

25.17.1. Synopsis

 void clip( ) 

25.17.2. Description

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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net