Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
lineto, _lineto_w
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The lineto functions draw a line from the current position up to
and including the destination point. The destination point for the
lineto function is given by the view-coordinate point (<x>, <y>).
The destination point for the lineto_w function is given by the
window-coordinate point (<wx>, <wy>).
The line is drawn using the current color, logical write mode, and
line style. If no error occurs, lineto sets the current position to
the view point (<x>, <y>); lineto_w sets the current position to
the window point (<wx>, <wy>).
If you use floodfill to fill in a closed figure drawn with lineto
calls, the figure must be drawn with a solid line-style pattern.
Return Value
The lineto and lineto_w functions return a nonzero value if the
line is drawn successfully, or 0 if an error occurs.
-♦-