FillMode enumeration
Applies to: desktop apps only
The FillMode enumeration specifies how to fill areas that are formed when a path or curve intersects itself. This enumeration is used by several methods of the Graphics class, including FillClosedCurve and FillPolygon, and by the constructors of the GraphicsPath class.
Syntax
typedef enum {
FillModeAlternate,
FillModeWinding
} FillMode;
Constants
- FillModeAlternate
-
Specifies that areas are filled according to the even-odd parity rule. According to this rule, you can determine whether a test point is inside or outside a closed curve as follows: Draw a line from the test point to a point that is distant from the curve. If that line crosses the curve an odd number of times, the test point is inside the curve; otherwise, the test point is outside the curve.
- FillModeWinding
-
Specifies that areas are filled according to the nonzero winding rule. According to this rule, you can determine whether a test point is inside or outside a closed curve as follows: Draw a line from a test point to a point that is distant from the curve. Count the number of times the curve crosses the test line from left to right, and count the number of times the curve crosses the test line from right to left. If those two numbers are the same, the test point is outside the curve; otherwise, the test point is inside the curve.
Requirements
|
Minimum supported client | Windows XP, Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Product | GDI+ 1.0 |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 3/6/2012