graphic function ttg_rectangle()

T&T graphic function ttg_rectangle

ttg_rectangle draws a rectangle with the current pen, 1 pixel wide ttg_pen and fills it with the current brush ttg_brush. The possibility to add round corners was deprecated. If your source still contains calls of the function with 6 parametrs, you get as message and the function preoceeds. I you do not want a frame line, just set the color of pen ttg_pencolor() to the color of brush ttg_brushcolor().

ttg_rectangle can be executed in ttg_createbmp()

Parameters:

1: x coordinate upper left corner
2: y coordinate upper left corner
3: x coordinate lower right corner
4: y coordinate lower right corner