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

search for in the

CairoContext::fillExtents> <CairoContext::deviceToUserDistance
[edit] Last updated: Fri, 07 Jun 2013

view this page in

CairoContext::fill

cairo_fill

(PECL cairo >= 0.1.0)

CairoContext::fill -- cairo_fillFills the current path

Descrierea

Stil obiect-orientat (method):

public void CairoContext::fill ( void )

Stil procedural:

void cairo_fill ( CairoContext $context )

A drawing operator that fills the current path according to the current CairoFillRule, (each sub-path is implicitly closed before being filled). After CairoContext::fill() or cairo_fill(), the current path will be cleared from the CairoContext.

Parametri

context

A valid CairoContext object created with CairoContext::__construct() or cairo_create()

Valorile întoarse

Nu este întoarsă nici o valoare.

Exemple

Example #1 Stil obiect-orientat

<?php

$s 
= new CairoImageSurface(CairoFormat::ARGB32100100);
$c = new CairoContext($s);
 
$c->setSourceRgb(000);
$c->paint();

$c->setSourceRgb(111);
$c->rectangle(005050);
$c->fill();
$c->setSourceRgb(010);
$c->rectangle(50505050);
$c->fill();

$s->writeToPng(dirname(__FILE__) . '/CairoContext_fill.png');

?>

Exemplul de mai sus va afișa ceva similar cu:

...

Example #2 Stil procedural

<?php

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

cairo_set_source_rgb($c000);
cairo_paint($c);

cairo_set_source_rgb($c111);
cairo_rectangle($c005050);
cairo_fill($c);
cairo_set_source_rgb($c010);
cairo_rectangle($c50505050);
cairo_fill($c);

cairo_surface_write_to_png($sdirname(__FILE__) . '/cairo_fill.png');

?>

Exemplul de mai sus va afișa ceva similar cu:

...

Vedeți de asemenea



add a note add a note User Contributed Notes CairoContext::fill - [0 notes]
There are no user contributed notes for this page.

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