Method Cairo.Pattern()->set_matrix()
- Method
set_matrix
void
set_matrix(Matrix
matrix
)- Description
Sets the pattern's transformation matrix to matrix. This matrix is a transformation from user space to pattern space.
When a pattern is first created it always has the identity matrix for its transformation matrix, which means that pattern space is initially identical to user space.
Important: Please note that the direction of this transformation matrix is from user space to pattern space. This means that if you imagine the flow from a pattern to user space (and on to device space), then coordinates in that flow will be transformed by the inverse of the pattern matrix.
Also, please note the discussion of the user-space locking semantics of Context->set_source().
- Parameter
matrix
a matrix