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 Library Reference - 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 (see _arc)
    draw an arc using window coordinates

_arc_wxy (see _arc)
    draw an arc using window coordinates

_clearscreen
    clear the screen and fill with the background color

_ellipse
    draw an ellipse

_ellipse_w (see _ellipse)
    draw an ellipse using window coordinates

_ellipse_wxy (see _ellipse)
    draw an ellipse using window coordinates

_floodfill
    fill an area of the screen with the current color

_floodfill_w (see _floodfill)
    fill an area of the screen in window coordinates with the current color

_getcurrentposition
    get the coordinates of the current output position

_getcurrentposition_w (see _getcurrentposition)
    get the window coordinates of the current output position

_getpixel
    get the color of the pixel at the specified position

_getpixel_w (see _getpixel)
    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 (see _lineto)
    draw a line from the current position to a specified position in window
    coordinates

_moveto
    set the current output position

_moveto_w (see _moveto)
    set the current output position using window coordinates

_pie
    draw a wedge of a "pie"

_pie_w (see _pie)
    draw a wedge of a "pie" using window coordinates

_pie_wxy (see _pie)
    draw a wedge of a "pie" using window coordinates

_polygon
    draw a polygon

_polygon_w (see _polygon)
    draw a polygon using window coordinates

_polygon_wxy (see _polygon)
    draw a polygon using window coordinates

_rectangle
    draw a rectangle

_rectangle_w (see _rectangle)
    draw a rectangle using window coordinates

_rectangle_wxy (see _rectangle)
    draw a rectangle using window coordinates

_setpixel
    set the color of the pixel at the specified position

_setpixel_w (see _setpixel)
    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