fillPath method
void
fillPath(
- PdfPath path,
- PdfMatrix transform,
- PdfFillRule rule,
- int rgba, {
- double tolerance = 0.25,
Fills path (page space) mapped through transform into device
space. rgba is a premultiplied color from premulRgba8.
With a shapeCache attached (the default), small paths are memoized by content (quantized outline + subpixel phase) and replayed with an integer translate + color override; see ShapeStripCache.
Implementation
void fillPath(PdfPath path, PdfMatrix transform, PdfFillRule rule, int rgba,
{double tolerance = 0.25}) {
if (path.isEmpty || _rowCount == 0) return;
final cache = shapeCache;
if (cache != null &&
path.segments.length <= ShapeStripCache.maxSegments &&
_shapeCached(cache, path, transform, rule, null, rgba, tolerance)) {
return;
}
_fillPathDirect(path, transform, rule, rgba, tolerance);
}