Closes the current subpath and starts a new subpath that has a start point that is equal to the end of the closed subpath.
HRESULT retVal = object.closePath();
This method has no parameters.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
- HTML Canvas 2D Context, Section 9
Be aware that
CanvasRenderingContext2D represents a canvas rendering 2D context object, as shown in the following example.
Build date: 11/12/2012