Name
ccontext:FillExtents -- get fill extents
Synopsis
x1, y1, x2, y2 = ccontext:FillExtents()
Function
Computes a bounding box in user coordinates covering the area that would be affected (the "inked" area) by a ccontext: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 ccontext:PathExtents(), which is similar, but returns non-zero extents for some paths with no inked area, such as a simple line segment.

Note that ccontext:FillExtents() must necessarily do more work to compute the precise inked areas in light of the fill rule, so ccontext:PathExtents() may be more desirable for sake of performance if the non-inked path extents are desired.

See ccontext:Fill(), ccontext:SetFillRule() and ccontext:FillPreserve().

Inputs
none

Results
x1
left of the resulting extents
y1
top of the resulting extents
x2
right of the resulting extents
y2
bottom of the resulting extents

Show TOC