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/pgcreategc.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/pgcreategc.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/pgcreategc.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/pgcreategc.html on line 8
Allocate a graphics context
PhGC_t *PgCreateGC( int unused );
- unused
- PgCreateGC() doesn't use this argument; set it to 0.
ph
This function allocates a graphics context.
A graphics context contains the entire
draw state, including color, clipping, and
current region.
|
If your application calls both Pg and Pt functions, you
must provide one graphics context for the Pg functions and a
separate context for the Pt functions. To do this, call
PgSetGC()
every time you switch from
one API to the other. |
A pointer to a graphics context, or NULL
if an error occurs.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PgDestroyGC(),
PgSetDrawBufferSize(),
PgSetGC()
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/pgcreategc.html on line 119
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/pgcreategc.html on line 119