Xbasic
LINETO Function
Syntax
V LINETO(N XPos,N YPos)
Arguments
- XPos
The horizontal coordinate of the point to draw to.
- YPos
The vertical coordinate of the point to draw to.
Description
Continue a polygon.
Discussion
LINETO() draws a line from the current position to the specified point. LINETO() must be preceded with a function that sets a location, such as START_POLY().
ui_bitmap_create("test",4,4)
ui_bitmap_draw("test",<<%code%
inner_Rect(0,0,4,4)
start_poly(2,1)
lineto(3,2)
lineto(1,3)
poly(2,1)
%code%)
ui_dlg_box("","{image=test}")Limitations
Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().
See Also
