comp • gb.cairo • cairomatrix

CairoMatrix (gb.cairo)

This class represents a Cairo transformation matrix.

This class is
Creates a new transformation matrix.
creatable
.
This class can be used as a
Creates a new transformation matrix and returns it.
static function
.

Methods

Inverts a transformation matrix and returns it.
Invert  
Multiplies the current matrix by the specified one, and returns it.
Multiply  
Rotates a transformation matrix, and returns it.
Rotate  
Scales a transformation matrix, and returns it.
Scale  
Translates a transformation matrix, and returns it.
Translate  

Note that all methods return the current matrix they applied on, so that you can easily chain calls on the same code line.