[Previous] [Contents] [Index] [Next]

PgSetTextDither()

Set the dither pattern for text and bitmap

Synopsis:

void PgSetTextDither( PgColor_t c1,
                      PgColor_t c0,
                      PgPattern_t pat );

Description:

This function combines two colors according to the pattern defined by pat and applies the pattern to text and bitmaps.

The c1 argument represents the color used for "on" bits in the dither pattern and c0 represents the color used for "off" bits. The driver always selects the colors closest to c1 and c0.

The dither pattern is an array of 8 bytes, aligned with the upper-left corner of the application's region. This pattern repeats itself every 8 pixels horizontally and every 8 pixels vertically. For a sample of dither patterns, see PgSetFillDither().

This function overrides the color defined by PgSetTextColor(). For basic colors, see PgColor_t.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgCMY(), PgColor_t, PgGray(), PgHSV(), PgRGB(), PgSetFillColor(), PgSetFillDither(), PgSetFillTransPat(), PgSetStrokeColor(), PgSetStrokeDither(), PgSetStrokeTransPat(), PgSetTextColor(), PgSetTextTransPat()


[Previous] [Contents] [Index] [Next]