Method Cairo.Context()->user_to_device()
- Method
user_to_device
array(float) user_to_device(float|intx,float|inty)- Description
Transform a coordinate from user space to device space by multiplying the given point by the current transformation matrix (CTM).
- Parameter
x X value of coordinate
- Parameter
y Y value of coordinate
- Returns
The transformed point
Array float0X position of the new point
float1Y position of the new point