Initializes matrix to a transformation that translates by tx and ty in the X and Y dimensions, respectively.

cairo_matrix_init_translate(matrix, tx, ty)

Arguments

matrix

[cairo_matrix_t *] a #cairo_matrix_t

tx

[double] amount to translate in the X direction

ty

[double] amount to translate in the Y direction

Details

Since: 1.0

C function prototype: void cairo_matrix_init_translate (cairo_matrix_t *matrix, double tx, double ty)

See also