Canvas.drawLine

Syntax

drawLine(x1: Number, y1: Number, x2: Number, y2: Number);

Parameters

x1. X coordinate of start line point.

y1. Y coordinate of start line point.

x2. X coordinate of end line point.

y2. Y coordinate of end line point.

Description

The drawLine method draws a line on the canvas.

Comments

The line is displayed on the canvas after calling the Canvas.flush method.

Example

The example of method use is given in description of the Canvas.StrokeDashArray property.

See also:

Canvas