Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

closePath method

Closes the current subpath and starts a new subpath that has a start point that is equal to the end of the closed subpath.

HTML Canvas 2D Context, Section 9Internet Explorer 9

 

Syntax


object.closePath();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Standards information

Remarks

Be aware that CanvasRenderingContext2D represents a canvas rendering 2D context object, as shown in the following example.

See also

ICanvasRenderingContext2D::beginPath

 

 

Community Additions

ADD
Show:
© 2015 Microsoft