php man page for cairo_fill

Query: cairo_fill

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CAIRO_FILL(3)								 1							     CAIRO_FILL(3)

CairoContext::fill - Fills the current path

       Object oriented style (method):

SYNOPSIS
public void CairoContext::fill (void )
DESCRIPTION
Procedural style: 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(3), the current path will be cleared from the CairoContext.
PARAMETERS
o $context - A valid CairoContext object created with CairoContext::__construct or cairo_create(3)
RETURN VALUES
No value is returned.
EXAMPLES
Example #1 Object oriented style <?php $s = new CairoImageSurface(CairoFormat::ARGB32, 100, 100); $c = new CairoContext($s); $c->setSourceRgb(0, 0, 0); $c->paint(); $c->setSourceRgb(1, 1, 1); $c->rectangle(0, 0, 50, 50); $c->fill(); $c->setSourceRgb(0, 1, 0); $c->rectangle(50, 50, 50, 50); $c->fill(); $s->writeToPng(dirname(__FILE__) . '/cairo_fill.png'); ?> The above example will output something similar to: Example #2 Procedural style <?php $s = cairo_image_surface_create(CAIRO_SURFACE_TYPE_IMAGE, 100, 100); $c = cairo_create($s); cairo_set_source_rgb($c, 0, 0, 0); cairo_paint($c); cairo_set_source_rgb($c, 1, 1, 1); cairo_rectangle($c, 0, 0, 50, 50); cairo_fill($c); cairo_set_source_rgb($c, 0, 1, 0); cairo_rectangle($c, 50, 50, 50, 50); cairo_fill($c); cairo_surface_write_to_png($s, dirname(__FILE__) . '/cairo_fill.png'); ?> The above example will output something similar to:
SEE ALSO
CairoContext::setFillRule, ContextContext::fillPreserve, CairoFillRule. PHP Documentation Group CAIRO_FILL(3)
Related Man Pages
cairo_curve_to(3) - php
cairo_close_path(3) - php
cairo_fill(3) - php
cairo_fill_extents(3) - php
cairo_fill_preserve(3) - php
Similar Topics in the Unix Linux Community
Command to output ones (like zero-fill), with progress indicator
Preprocessor __FILE__ for Debugging