Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - these functions display graphical images such as lines and ellipses. http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
These functions display graphical images such as lines and ellipses.
 Functions exist to draw straight lines (see the  _lineto functions),
rectangles (see the  _rectangle functions), polygons (see the  _polygon
functions), ellipses (see the  _ellipse functions), elliptical arcs (see the
 _arc functions) and pie-shaped wedges from ellipses (see the  _pie
functions).

These figures are drawn using the attributes described in the previous
section.  The functions ending with _w or _wxy use the window coordinate
system; the others use the view coordinate system.

The following functions are defined:

_arc
    draw an arc

_arc_w
    draw an arc using window coordinates

_arc_wxy
    draw an arc using window coordinates

_clearscreen
    clear the screen and fill with the background color

_ellipse
    draw an ellipse

_ellipse_w
    draw an ellipse using window coordinates

_ellipse_wxy
    draw an ellipse using window coordinates

_floodfill
    fill an area of the screen with the current color

_floodfill_w
    fill an area of the screen in window coordinates with the current color

_getcurrentposition
    get the coordinates of the current output position

_getcurrentposition_w
    get the window coordinates of the current output position

_getpixel
    get the color of the pixel at the specified position

_getpixel_w
    get the color of the pixel at the specified position in window
    coordinates

_lineto
    draw a line from the current position to a specified position

_lineto_w
    draw a line from the current position to a specified position in window
    coordinates

_moveto
    set the current output position

_moveto_w
    set the current output position using window coordinates

_pie
    draw a wedge of a "pie"

_pie_w
    draw a wedge of a "pie" using window coordinates

_pie_wxy
    draw a wedge of a "pie" using window coordinates

_polygon
    draw a polygon

_polygon_w
    draw a polygon using window coordinates

_polygon_wxy
    draw a polygon using window coordinates

_rectangle
    draw a rectangle

_rectangle_w
    draw a rectangle using window coordinates

_rectangle_wxy
    draw a rectangle using window coordinates

_setpixel
    set the color of the pixel at the specified position

_setpixel_w
    set the color of the pixel at the specified position in window
    coordinates

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson