WebGraphics.DrawLine

From Xojo Documentation

Method

WebGraphics.DrawLine(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer)

Supported for all project types and targets.

Draws a line from x1, y1 to x2, y2 in the current color (specified by ForeColor).

Example

Draws a line from the top left to the bottom right:

g.PenWidth = 5
g.DrawLine(0, 0, g.Width, g.Height)