beginPath method

[This documentation is preliminary and is subject to change.]

Resets the current path.

HTML Canvas 2D Context, Section 9Internet Explorer 9

Syntax

HRESULT retVal = object.beginPath();

Standards information

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A path consists of a list of zero or more subpaths. Each subpath is a list of one or more points that are connected by straight or curved lines. Each subpath also contains a flag that indicates whether the subpath is closed. If a subpath is closed, the last point of the subpath is connected to the first point by a straight line. Subpaths that have fewer than two points are ignored when the path is painted.

 

 

Build date: 1/23/2012