CairoContext::fillPreserve
cairo_fill_preserve
(PECL cairo >= 0.1.0)
CairoContext::fillPreserve -- cairo_fill_preserve — Fills and preserve the current path
Descrição
Estilo orientado a objetos (method):
Estilo de procedimentos:
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.
Parâmetros
- context
-
A valid CairoContext object created with CairoContext::__construct() or cairo_create()
Valor Retornado
Não há valor retornado.
Exemplos
Exemplo #1 Estilo orientado a objetos
<?php
/* ... */
?>
O exemplo acima irá imprimir algo similar a:
...
Exemplo #2 Estilo de procedimentos
<?php
/* ... */
?>
O exemplo acima irá imprimir algo similar a:
...
Veja Também
- CairoContext::setFillRule() - The setFillRule purpose
- CairoContext::fill() - Fills the current path
