CairoContext::fillExtents
cairo_fill_extents
Computes the filled area
Beschreibung
Objektorientierter Stil (method):
public array CairoContext::fillExtents
( void
)
array cairo_fill_extents
( CairoContext $context
)
Contrast with CairoContext::pathExtents, which is similar, but returns
non-zero extents for some paths with no inked area, (such as a simple line segment).
Note that CairoContext::fillExtents must necessarily do more work to
compute the precise inked areas in light of the fill rule, so
CairoContext::pathExtents may be more desirable for sake of
performance if the non-inked path extents are desired.
Parameter-Liste
-
context
-
A valid CairoContext object created with
CairoContext::__construct or cairo_create
Rückgabewerte
An array with the coordinates of the afected area
Beispiele
Beispiel #1 Objektorientierter Stil
Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:
Beispiel #2 Prozeduraler Stil
Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:
Siehe auch
- CairoContext::fill
- CairoContext::setFillRule
- CairoContext::fillPreserve