From Xojo Documentation

Revision as of 16:15, 11 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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).


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

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