Function Context.fillExtends
Computes a bounding box in user coordinates covering the area
that would be affected, (the "inked" area), by a
fill
() operation given the current path and fill
parameters.
If the current path is empty, returns an empty rectangle
((0,0), (0,0)). Surface
dimensions and clipping are not
taken into account.
Contrast with pathExtents(), which is similar, but returns non-zero extents for some paths with no inked area, (such as a simple line segment).
Note that fillExtents() must necessarily do more work
to compute the precise inked areas in light of the fill
rule,
so pathExtents() may be more desirable for sake of
performance if the non-inked path extents are desired.
See fill
(), setFillRule
() and fillPreserve
().
Prototype
Box fillExtends();
Authors
Johannes Pfau | cairoD |
Andrej Mitrovic | cairoD |
cairo team | cairo |
Copyright
License
cairoD wrapper/bindings | Boost License 1.0 |
cairo | LGPL 2.1 / MPL 1.1 |