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/gf/dev_guide/api/gf_context_set_pattern.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/gf/dev_guide/api/gf_context_set_pattern.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/gf/dev_guide/api/gf_context_set_pattern.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/gf/dev_guide/api/gf_context_set_pattern.html on line 8
Set the current ROP pattern
#include <gf/gf.h>
void gf_context_set_pattern( gf_context_t context,
const uint8_t *pattern,
unsigned short x_offset,
unsigned short y_offset,
unsigned flags )
- context
- The draw context to set the pattern for.
- pattern
- A pointer to the bitmap containing the pattern.
- x_offset, y_offset
- The horizontal and vertical offset for the pattern bitmap.
- flags
- Flags controlling additional behavior. Valid flags are:
- GF_CONTEXT_PATTERN_BACKFILL — render the off bits (0) in the pattern with the background color. The default is to render them as transparent.
gf
This function sets the current pattern. Patterns are used in conjunction with raster operations (ROPs) to allow a total of 256 possible operations — see gf_context_set_rop() for more information.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_context_create()
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/gf/dev_guide/api/gf_context_set_pattern.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/gf/dev_guide/api/gf_context_set_pattern.html on line 119