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

PgSetFillTransPat()

Set the draw transparency for fills

Synopsis:

void PgSetFillTransPat( PgPattern_t pat );

Description:

This function sets a masking pattern and applies it to fills. You should use it in combination with PgSetFillColor() or PgSetFillDither().

This function uses the same patterns as PgSetFillDither(), To disable transparency and draw normally, specify the Pg_PAT_DEFAULT pattern.


Note: Because of speed considerations, some graphics drivers don't draw strokes with a transparency mask and, as a result, ignore the stroke transparency pattern.

Examples:

// let background show through for half the pixels
PgSetFillTransPat( Pg_PAT_HALF );

// disable transparency mask, draw normally
PgSetFillTransPat( Pg_PAT_DEFAULT );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgSetFillColor(), PgSetFillDither(), PgSetStrokeColor(), PgSetStrokeDither(), PgSetStrokeTransPat(), PgSetTextColor(), PgSetTextDither(), PgSetTextTransPat()


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