Tag Archives: FillMode

Create a Contain FillMode for filling polygons in C#

The example Understand fill modes in C# showed how the Alternate and Winding FillMode values affect the result when you fill a self-intersecting polygon. In many cases, the Alternate FillMode leaves holes in a self-intersecting polygon while the Winding FillMode … Continue reading

Posted in algorithms, drawing, graphics | Tagged , , , , , , , , , , , | 2 Comments

Understand fill modes in C#

C# drawing routines have two fill modes. In Windows Forms they are called Alternate and Winding. In WPF they are called Odd/Even and Non-Zero. This example lets you draw polygons and see how the two fill modes determine which points … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , | 1 Comment