downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

CairoContext::identityMatrix> <CairoContext::glyphPath
[edit] Last updated: Fri, 24 Feb 2012

view this page in

CairoContext::hasCurrentPoint

cairo_has_current_point

(PECL cairo >= 0.1.0)

CairoContext::hasCurrentPoint -- cairo_has_current_pointThe hasCurrentPoint purpose

Descrição

Estilo orientado a objetos (method):

public bool CairoContext::hasCurrentPoint ( void )

Estilo de procedimentos:

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.

Parâmetros

context

A valid CairoContext object.

Valor Retornado

Whether a current point is defined

Exemplos

Exemplo #1 Estilo orientado a objetos

<?php

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

var_dump($c->hasCurrentPoint());

$c->moveTo(1010);

var_dump($c->hasCurrentPoint());

?>

O exemplo acima irá imprimir:

bool(false)
bool(true)

Exemplo #2 Estilo de procedimentos

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

?>

O exemplo acima irá imprimir:

bool(false)
bool(true)

Veja Também



add a note add a note User Contributed Notes CairoContext::hasCurrentPoint
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites