Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgsettextdither.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgsettextdither.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgsettextdither.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgsettextdither.html on line 8

PgSetTextDither(), PgSetTextDitherCx()

Set the dither pattern for text and bitmap

Synopsis:

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

void PgSetTextDitherCx( PhGC_t *gc,
                        PgColor_t c1,
                        PgColor_t c0,
                        PgPattern_t pat );

Library:

ph

Description:

These functions combine 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*().

These functions override the color defined by PgSetTextColor*(). For basic colors, see PgColor_t.

PgSetTextDither() works on the current graphics context, while you can specify the graphics context gc for PgSetTextDitherCx().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgARGB(), PgColor_t, PgDefaultText*(), PgDrawString*(), PgDrawText*(), PgDrawTextArea*(), PgExtentMultiText*(), PgExtentText*(), PgGray(), PgHSV(), PgRGB(), PgSetDrawMode*(), PgSetFillDither*(), PgSetFont*(), PgSetStrokeDither*(), PgSetTextColor*(), PgSetTextTransPat*(), PgSetTextXORColor*(), PgSetUnderline*()

Drawing attributes and Text in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgsettextdither.html on line 141

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgsettextdither.html on line 141