CAIRO_DEVICE_TO_USER(3) 1 CAIRO_DEVICE_TO_USER(3)
CairoContext::deviceToUser - Transform a coordinate
Object oriented style (method):
SYNOPSIS
public array CairoContext::deviceToUser (float $x, float $y)
DESCRIPTION
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
o $context
- A valid CairoContext object created with CairoContext::__construct or cairo_create(3)
o $x
- x value of the coordinate
o $y
- y value of the coordinate
RETURN VALUES
An array containing the x and y coordinates in the user-space
SEE ALSO
CairoContext::deviceToUserDistance.
PHP Documentation Group CAIRO_DEVICE_TO_USER(3)