Method Cairo.Context()->device_to_user()
- Method
device_to_user
array
(float
) device_to_user(float
|int
x
,float
|int
y
)- Description
Transform a coordinate from device space to user space by multiplying the given point by the inverse of 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