Method Cairo.Context()->device_to_user_distance()


Method device_to_user_distance

array(float) device_to_user_distance(float|int dx, float|int dy)

Description

Transform a distance vector from device space to user space. This function is similar to device_to_user() except that the translation components of the inverse CTM will be ignored when transforming (dx, dy).

Parameter dx

X component of a distance vector (in/out parameter)

Parameter dy

Y component of a distance vector (in/out parameter)

Returns

The transformed distance vector

Array
float 0

X component of the new distance vector

float 1

Y component of the new distance vector