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 - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    unsigned char _FAR * _FAR
        _getfillmask( unsigned char _FAR *mask );

Description:
    The _getfillmask function copies the current fill mask into the area
    located by the argument mask.  The fill mask is used by the  _ellipse,
     _floodfill,  _pie,  _polygon and  _rectangle functions that fill an
    area of the screen.

    The fill mask is an eight-byte array which is interpreted as a square
    pattern (8 by 8) of 64 bits.  Each bit in the mask corresponds to a
    pixel.  When a region is filled, each point in the region is mapped onto
    the fill mask.  When a bit from the mask is one, the pixel value of the
    corresponding point is set using the current plotting action with the
    current color; when the bit is zero, the pixel value of that point is
    not affected.

    When the fill mask is not set, a fill operation will set all points in
    the fill region to have a pixel value of the current color.

Returns:
    If no fill mask has been set, NULL is returned; otherwise, the
    _getfillmask function returns mask.

See Also:
    _floodfill, _floodfill_w, _setfillmask, _setplotaction

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

    char old_mask[ 8 ];
    char new_mask[ 8 ] = { 0x81, 0x42, 0x24, 0x18,
                           0x18, 0x24, 0x42, 0x81 };

    main()
    {
        _setvideomode( _VRES16COLOR );
        _getfillmask( old_mask );
        _setfillmask( new_mask );
        _rectangle( _GFILLINTERIOR, 100, 100, 540, 380 );
        _setfillmask( old_mask );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

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