TAgg2D.FillEvenOdd(evenOddFlag)
Description
Changes the current type of rasterizer's filling rule.
The default value if FALSE that represents the NonZero (Winding) filling rule.
Parameters
evenOddFlag: boolean
A new value for filling rule.
TRUE represents Even/Odd rule.
FALSE represents NonZero (Winding) rule.
Example
if VG.Attach(Image1.Picture.Bitmap) then begin VG.ClearAll(255, 255, 255); // Red fill & drawing path VG.FillColor(255, 0, 0); VG.ResetPath; VG.MoveTo(12, 40); VG.LineTo(132, 112); VG.LineTo(72, 6); VG.LineTo(12, 112); VG.LineTo(132, 40); VG.ClosePolygon; // Default fill rule - NonZero VG.DrawPath; // Change to Even/Odd VG.FillEvenOdd(true); VG.Translate(140, 0); VG.DrawPath; end;



