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 - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    short _FAR _ellipse( short fill, short x1, short y1,
                                     short x2, short y2 );

    short _FAR _ellipse_w( short fill, double x1, double y1,
                                       double x2, double y2 );

    short _FAR _ellipse_wxy( short fill,
                             struct _wxycoord _FAR *p1,
                             struct _wxycoord _FAR *p2 );

Description:
    The _ellipse functions draw ellipses.  The _ellipse function uses the
    view coordinate system.  The _ellipse_w and _ellipse_wxy functions use
    the window coordinate system.

    The center of the ellipse is the center of the rectangle established by
    the points (x1,y1) and (x2,y2).

    The argument fill determines whether the ellipse is filled in or has
    only its outline drawn.  The argument can have one of two values:

    _GFILLINTERIOR
        fill the interior by writing pixels with the current plot action
        using the current color and the current fill mask

    _GBORDER
        leave the interior unchanged; draw the outline of the figure with
        the current plot action using the current color and line style

    When the coordinates (x1,y1) and (x2,y2) establish a line or a point
    (this happens when one or more of the x-coordinates or y-coordinates are
    equal), nothing is drawn.

Returns:
    The _ellipse functions return a non-zero value when the ellipse was
    successfully drawn; otherwise, zero is returned.

Example:
    #include <conio.h>
    #include <graph.h>

    main()
    {
        _setvideomode( _VRES16COLOR );
        _ellipse( _GBORDER, 120, 90, 520, 390 );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

    produces the following:



Classification:
    _ellipse is PC Graphics

Systems:
     _ellipse - DOS, QNX

    _ellipse_w - DOS, QNX
    _ellipse_wxy - DOS, QNX

See Also:
    _arc, _rectangle, _setcolor, _setfillmask, _setlinestyle, _setplotaction

See Also: _setcolor _setfillmask

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