Restore a context's default settings
#include <gf/gf.h>
void gf_context_init( gf_context_t context );
- context
- The graphics context to restore.
gf
This function restores a draw context to its initial default state, which sets the following values:
- pen width to 1
- foreground and background color to black
- ROP code to GF_ROP_S (source copy)
- line join to GF_CONTEXT_LINEJOIN_BUTT
- disabling of:
- clipping
- alpha
- chroma
- pattern
- transform
- translation
- line dashing
- antialiasing
 |
This function doesn't affect the surface that a context targets. |
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_context_create()