Applies a translation by tx, ty to the transformation in matrix. The effect of the new transformation is to first translate the coordinates by tx and ty, then apply the original transformation to the coordinates.

cairo_matrix_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_translate (cairo_matrix_t *matrix, double tx, double ty)

See also