cairo-transformations: Transformations
Description
Manipulating the current transformation matrixMethods and Functions
cairoTranslate(cr, tx, ty)
cairoScale(cr, sx, sy)
cairoRotate(cr, angle)
cairoTransform(cr, matrix)
cairoSetMatrix(cr, matrix)
cairoGetMatrix(cr, matrix)
cairoIdentityMatrix(cr)
cairoUserToDevice(cr, x, y)
cairoUserToDeviceDistance(cr, dx, dy)
cairoDeviceToUser(cr, x, y)
cairoDeviceToUserDistance(cr, dx, dy)
Detailed Description
The current transformation matrix, ctm, is a
two-dimensional affine transformation that maps all coordinates and other
drawing instruments from the user space into the
surface's canonical coordinate system, also known as the device
space.