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>
    void _FAR _setcliprgn( short x1, short y1,
                           short x2, short y2 );

Description:
    The _setcliprgn function restricts the display of graphics output to the
    clipping region.  This region is a rectangle whose opposite corners are
    established by the physical points (x1,y1) and (x2,y2).

    The _setcliprgn function does not affect text output using the  _outtext
    and  _outmem functions.  To control the location of text output, see the
     _settextwindow function.

Returns:
    The _setcliprgn function does not return a value.

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

    main()
    {
        short x1, y1, x2, y2;

        _setvideomode( _VRES16COLOR );
        _getcliprgn( &x1, &y1, &x2, &y2 );
        _setcliprgn( 130, 100, 510, 380 );
        _ellipse( _GBORDER, 120, 90, 520, 390 );
        getch();
        _setcliprgn( x1, y1, x2, y2 );
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _settextwindow, _setvieworg, _setviewport

See Also: _settextwindow _setvieworg

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