PETZOLD BOOK BLOG

Charles Petzold on writing books, reading books, and exercising the internal UTM


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

FillRule in WPF Animations

March 28, 2006
New York City

The graphics FillRule (as it's called in WPF) has existed in Windows since version 1.0 and governs how overlapping areas of polygons or paths are colored. The WPF default is FillRule.EvenOdd, which means that a particular interior is filled only if there exists an odd number of boundary lines enclosing that area.

While numerous examples of the FillRule have been devised (most of them involving five-pointed stars), it's still fun to see the FillRule play a role in a WPF animation in this standalone TotalEclipseOfTheSun.xaml file. Download it, run it, or just look at it here:


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

(c) Copyright Charles Petzold
www.charlespetzold.com