Language:
Русский
English
LineTo (procedure) (Graph unit)
Draws a line from the current pointer to (X,Y).
Declaration
procedure LineTo(X, Y: Integer);
Target
Real, Protected
Remarks
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.
Note that
MoveTo(100, 100);
LineTo(200, 200);
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).
Restrictions
Must be in graphics mode.