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_transform.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_transform.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_transform.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_transform.html on line 8
Set the current 2D transform matrix
#include <gf/gf.h>
void gf_context_set_transform(
gf_context_t context,
const gf_fixed_t *xform_matrix );
- context
- The draw context to set the transform for.
- xform_matrix
- A pointer to an array of four gf_fixed_t (signed 16.16 fixed point) elements composing the 2×2 matrix. Don't pass NULL for this argument.
gf
This function sets the current 2D transform matrix. This 2×2 matrix is multiplied by 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. See gf_context_set_translation() for information on translations.
|
The 2D transform matrix applies only to geometrical primitives such as polygons, lines, and polylines. The algorithm isn't applied to spans, rectangles, bitmaps, fonts, etcetera. |
The gf_fixed_t type is a 32-bit number representing signed 16.16 fixed point values used in transformation matrices. The composition of this type is native endian with the low 16 bits representing the fractional component, the high 16 bits representing the integral component, in two's complement notation.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_context_disable_transform(),
gf_context_set_translation()
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_transform.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_transform.html on line 119