JavaScript canvas2d object method: clip()
[this page | pdf | back links]
The
clip() method of the JavaScript
DOM object
returned by the getContext("2d")
method applied to the HTML <canvas>
element clips a region from canvas. Once a region is clipped, all future
drawing is limited to the clipped region, although if you save the region
before clipping it can then be restored using the restore()
method.
It has the following
syntax with no parameters.
context.clip()
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)