(PECL cairo >= 0.1.0)

CairoContext::deviceToUserDistance -- cairo_device_to_user_distanceTransform a distance


Stile orientato agli oggetti (method):

public CairoContext::deviceToUserDistance ( float $x , float $y ) : array

Stile procedurale:

cairo_device_to_user_distance ( CairoContext $context , float $x , float $y ) : array

Transform a distance vector from device space to user space. This function is similar to CairoContext::deviceToUser() or cairo_device_to_user() except that the translation components of the inverse Cairo Transformation Matrix will be ignored when transforming (x,y).

Elenco dei parametri


A valid CairoContext object created with CairoContext::__construct() or cairo_create()


X component of a distance vector


Y component of a distance vector

Valori restituiti

Returns an array with the x and y values of a distance vector in the user-space

Vedere anche:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top