Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: CairoContext::hasCurrentPoint - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CairoContext::hasCurrentPoint

2025-07-01

CairoContext::hasCurrentPoint

cairo_has_current_point

(PECL cairo >= 0.1.0)

CairoContext::hasCurrentPoint -- cairo_has_current_pointThe hasCurrentPoint purpose

说明

面向对象风格 (method):

public CairoContext::hasCurrentPoint ( void ) : bool

过程化风格:

cairo_has_current_point ( CairoContext $context ) : bool

Returns whether a current point is defined on the current path. See CairoContext::getCurrentPoint() for details on the current point.

参数

context

A valid CairoContext object.

返回值

Whether a current point is defined

范例

Example #1 面向对象风格

<?php

$s 
= new CairoImageSurface(CairoFormat::ARGB32100100);
$c = new CairoContext($s);

var_dump($c->hasCurrentPoint());

$c->moveTo(1010);

var_dump($c->hasCurrentPoint());

?>

以上例程会输出:

bool(false)
bool(true)

Example #2 过程化风格

<?php

$s 
cairo_image_surface_create(CAIRO_SURFACE_TYPE_IMAGE100100);
$c cairo_create($s);

var_dump(cairo_has_current_point($c));

cairo_move_to($c1010);

var_dump(cairo_has_current_point($c));

?>

以上例程会输出:

bool(false)
bool(true)

参见

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.hascurrentpoint.php

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3