lineTo method
Adds a new point to a subpath and connects that point to the last point in the subpath by using a straight line.
![]() ![]() |
Syntax
HRESULT retVal = object.lineTo(x, y);
Parameters
- x [in]
-
Type: float
The x-coordinate, in pixels.
- y [in]
-
Type: float
The y-coordinate, in pixels.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
- HTML Canvas 2D Context, Section 9
See also
Build date: 11/12/2012

