Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

HTML Canvas 2D Context, Section 9Internet Explorer 9

Syntax


object.lineTo(x, y);

Parameters

x [in]

Type: number

The x-coordinate, in pixels.

y [in]

Type: number

The y-coordinate, in pixels.

Return value

This method does not return a value.

Standards information

See also

ICanvasRenderingContext2D::moveTo

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.