GoLang CairoContext::deviceToUser

request it (202)
GoLang replacement for PHP's CairoContext::deviceToUser [edit | history]



Do you know a GoLang replacement for PHP's CairoContext::deviceToUser? Write it!

PHP CairoContext::deviceToUser

PHP original manual for CairoContext::deviceToUser [ show | php.net ]

CairoContext::deviceToUser

cairo_device_to_user

(PECL cairo >= 0.1.0)

CairoContext::deviceToUser -- cairo_device_to_userTransform a coordinate

Description

Object oriented style (method):

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

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

Return Values

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

See Also