gf_context_set_translation()

Set the current translation values

Synopsis:

#include <gf/gf.h>

void gf_context_set_translation( gf_context_t context,
                                 int tx,
                                 int ty );

Arguments:

context
The draw context to set the translation for.
tx, ty
The horizontal and vertical translation.

Library:

gf

Description:

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().


Note: The translations apply only to geometrical primitives such as polygons, lines, and polylines. The algorithm isn't applied to spans, rectangles, bitmaps, text etc.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_context_disable_translation(), gf_context_set_transform()