CairoContext::deviceToUser

(PECL cairo >= 0.1.0)
Transform a coordinate
public array CairoContext::deviceToUser ( float $x, float $y )

Object oriented style (method):

Procedural style:

array cairo_device_to_user ( CairoContext $context , float $x , float $y )

Transform a coordinate from device space to user space by multiplying the given point by the inverse of the current transformation matrix (CTM).

Parameters:
context

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

x

x value of the coordinate

y

y value of the coordinate

Returns:

An array containing the x and y coordinates in the user-space

See also:

CairoContext::deviceToUserDistance() -

doc_php
2016-02-24 15:58:55
Comments
Leave a Comment

Please login to continue.