LINETO

Top  Previous  Next

Syntax

LINETO(win as WINDOW,x1 as UINT,y1 as UINT,OPT crColor as UINT)

Description

Draws a line from the current pen position to the position specified.

Parameters

win - Window to draw line into.

x1, y1 - Ending coordinates for line.

crColor - Optional line color.

Return value

None.

Remarks

The current pen position is updated directly by the MOVE command. If crColor is not supplied then the line is drawn in the foreground color set by FRONTPEN.

See Also: MOVE, LINE, FRONTPEN

Example usage

MOVE wnd, 10,10
LINETO wnd, 50,50
LINETO wnd, 50,100