Method Cairo.Context()->user_to_device()
- Method
user_to_device
array
(float
) user_to_device(float
|int
x
,float
|int
y
)- 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 float
0
X position of the new point
float
1
Y position of the new point