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_translation.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_translation.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_translation.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_translation.html on line 8
Set the current translation values
#include <gf/gf.h>
void gf_context_set_translation( gf_context_t context,
int tx,
int ty );
- context
- The draw context to set the translation for.
- tx, ty
- The horizontal and vertical translation.
gf
This function sets the current x and y translation values. These values are added to all polygon, line, and polyline coordinates prior to rendering. Using a combination of the transform matrix and translations, various rotation, scaling and reflection operations are possible. For more information on transforms, see gf_context_set_transform().
|
The translations apply only to geometrical primitives such as polygons, lines, and polylines. The algorithm isn't applied to spans, rectangles, bitmaps, text etc. |
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_context_disable_translation(),
gf_context_set_transform()
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_translation.html on line 112
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_translation.html on line 112