Draws a line from the current pointer to (X,Y).
procedure LineTo(X, Y: Integer);
Draws a line in the style and thickness defined by SetLineStyle and uses the color set by SetColor. Use SetWriteMode to determine whether the line is copied or XOR'd to the screen.
is equivalent to
Line(100, 100, 200, 200);
The first method is slower and uses more code. Use LineTo only when the current pointer is at one endpoint of the line. Use LineRel to draw a line a relative distance from the CP. The second method doesn't change the value of the CP.
LineTo moves the current pointer to (X, Y).
Must be in graphics mode.