- set graphic background mode

Low-level graphics
(AFL 3.0)

SYNTAX GfxSetBkMode( bkmode )
FUNCTION Sets the background mode. The background mode defines whether the system removes existing background colors on the drawing surface before drawing text, hatched brushes, or any pen style that is not a solid line.


  • bkmode - Specifies the mode to be set. This parameter can be either of the following values:
    OPAQUE = 2 - Background is filled with the current background color before the text, hatched brush, or pen is drawn. This is the default background mode.
    TRANSPARENT = 1 - Background is not changed before drawing

    NOTE: This is LOW-LEVEL graphic function. To learn more about low-level graphic functions please read TUTORIAL: Using low-level graphics.

EXAMPLE GfxSetBkMode( 1 ); // set transparent mode
SEE ALSO GfxSetTextAlign() function , GfxSetTextColor() function , GfxTextOut() function , GfxSelectPen() function


The GfxSetBkMode function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference