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/pgsetgc.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/pgsetgc.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/pgsetgc.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/pgsetgc.html on line 8

PgSetGC(), PgSetGCCx()

Set current graphics context

Synopsis:

PhGC_t *PgSetGC( PhGC_t *GC );

PhGC_t *PgSetGCCx( void *dc,
                   PhGC_t *GC );

Arguments:

dc
PgSetGCCx() only. A void pointer to any type of draw context. Examples of draw contexts are:
GC
A pointer to a graphics context, as returned by PgCreateGC().

Library:

ph

Description:

These functions set the current graphics context to GC.

PgSetGC() works on the current draw context, while you can specify the draw context for PgSetGCCx().

Returns:

A pointer to the previous graphics context.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgCreateGC(), PgDestroyGC(), PgGetGC*()


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/pgsetgc.html on line 127

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/pgsetgc.html on line 127