CairoContext::deviceToUser

cairo_device_to_user

Transform a coordinate

Beschreibung

Objektorientierter Stil (method):

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

Prozeduraler Stil:

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).

Parameter-Liste

context

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

x

x value of the coordinate

y

y value of the coordinate

Rückgabewerte

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

Siehe auch

  • CairoContext::deviceToUserDistance