略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CairoContext::deviceToUser

2024-04-25

CairoContext::deviceToUser

cairo_device_to_user

(PECL cairo >= 0.1.0)

CairoContext::deviceToUser -- cairo_device_to_userTransform a coordinate

说明

面向对象风格 (method):

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

过程化风格:

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

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

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/cairocontext.devicetouser.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3