graphic function ttg_line()

T&T graphic function ttg_line

The Tool&Task graphic function ttg_line() draws a line between two points into the target bitmap (gTTG_Target:ttg_common). It uses the current definition of ttg_pen() and receives 4 numeric parameters.

The command ttg_line(0, 0, 0, 0) will set one pixel into the upper left corner.

 

Parameters:

1: X coord point 1
2: Y coord point 1
3: X coord point 2
4: Y coord point 2