Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Polygons🞂TPolyFillModeType

TPolyFillMode

Enumeration specifying polygon filling rules for intersecting or self-overlapping paths.

Declaration ​

pascal
TPolyFillMode = (pfAlternate, pfWinding, pfEvenOdd = 0, pfNonZero);

Description ​

TPolyFillMode determines how coverage and winding numbers are evaluated to decide whether a point falls inside a complex multi-contour or self-intersecting polygon.

Enum Values ​

ValueDescription
pfAlternateAlternate / Even-Odd fill rule. A point is inside the polygon if a ray drawn from it to infinity crosses an odd number of path edges. Equivalent to pfEvenOdd.
pfWindingNon-Zero Winding fill rule. Evaluates the direction of contour edges crossing a ray to compute a net winding number; non-zero counts are considered inside. Equivalent to pfNonZero.
pfEvenOddAlias for pfAlternate (value 0).
pfNonZeroAlias for pfWinding (value 1).