CairoContext::fillPreserve

cairo_fill_preserve

Fills and preserve the current path

Beschreibung

Objektorientierter Stil (method):

public void CairoContext::fillPreserve ( void )

Prozeduraler Stil:

void cairo_fill_preserve ( CairoContext $context )

A drawing operator that fills the current path according to the current CairoFillRule, (each sub-path is implicitly closed before being filled). Unlike CairoContext::fill, CairoContext::fillPreserve (Procedural cairo_fill, cairo_fill_preserve, respectively) preserves the path within the Context.

Parameter-Liste

context

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

Rückgabewerte

Es wird kein Wert zurückgegeben.

Beispiele

Beispiel #1 Objektorientierter Stil

<?php
/* ... */
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

...

Beispiel #2 Prozeduraler Stil

<?php
/* ... */
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

...

Siehe auch

  • CairoContext::setFillRule
  • CairoContext::fill