PHP 5.6.0RC3 is available

CairoContext::hasCurrentPoint

cairo_has_current_point

(PECL cairo >= 0.1.0)

CairoContext::hasCurrentPoint -- cairo_has_current_pointThe hasCurrentPoint purpose

Descrizione

Stile orientato agli oggetti (method):

public bool CairoContext::hasCurrentPoint ( void )

Stile procedurale:

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.

Elenco dei parametri

context

A valid CairoContext object.

Valori restituiti

Whether a current point is defined

Esempi

Example #1 Stile orientato agli oggetti

<?php

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

var_dump($c->hasCurrentPoint());

$c->moveTo(1010);

var_dump($c->hasCurrentPoint());

?>

Il precedente esempio visualizzerĂ :

bool(false)
bool(true)

Example #2 Stile procedurale

<?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));

?>

Il precedente esempio visualizzerĂ :

bool(false)
bool(true)

Vedere anche:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top