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 _setfillmask( char _FAR *mask );

Description:
    The _setfillmask function sets the current fill mask to the value of the
    argument mask.  When the value of the mask argument is NULL, there will
    be no fill mask set.

    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.  By default,
    no fill mask is set.

Returns:
    The _setfillmask function does not return a value.

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 );
    }

    produces the following:



Classification:
    _setfillmask is PC Graphics

Systems:
    DOS, QNX

See Also:
    _getfillmask, _ellipse, _floodfill, _rectangle, _polygon, _pie,
    _setcolor, _setplotaction

See Also: _getfillmask _setcolor

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