update : 2015.11.03
php.shukuma.com

검색:
 
 
The hasCurrentPoint purpose

CairoContext::hasCurrentPoint

cairo_has_current_point

(PECL cairo >= 0.1.0)

CairoContext::hasCurrentPoint -- cairo_has_current_pointThe hasCurrentPoint purpose

설명

객체 기반 형식 (method):

public bool CairoContext::hasCurrentPoint ( void )

절차식 형식:

bool cairo_has_current_point ( CairoContext $context )

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)

참고