update : 2015.11.03
php.shukuma.com

검색:
 
 
Transform a coordinate

CairoContext::deviceToUser

cairo_device_to_user

(PECL cairo >= 0.1.0)

CairoContext::deviceToUser -- cairo_device_to_userTransform a coordinate

설명

객체 기반 형식 (method):

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

절차식 형식:

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

인수

context

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

x

x value of the coordinate

y

y value of the coordinate

반환값

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

참고