Flood Fill

Demonstrates flood fill algorithms in C# with GDI+
Download

Flood Fill Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • J. Dunlap
  • Publisher web site:
  • http://www.codeproject.com/Members/J-Dunlap
  • Operating Systems:
  • Windows All
  • File Size:
  • 110 KB

Flood Fill Tags


Flood Fill Description

GDI+ does not have built-in flood fill capabilities. This example shows you how to create three different flood-fill algorithms for GDI+. It expands on the typical flood fill implementation by allowing adjustable color tolerance, and optional 8-way (diagonal) branching.The flood fill algorithms will not be as fast as they would be if they were written in assembler, but you most likely won't notice this in ordinary use, because they are still quite fast.The Flood Fill application was developed to be a small test tool that demonstrates flood fill algorithms in C# with GDI+. The demo program allows you to open and save bitmap files, and flood-fill them. It allows you to change the fill color and color tolerance for the fill operation, and has a brief explanation of each algorithm. You can watch the fill operation in slow motion (helpful for understanding how the different algorithms work). You can also see how long the flood fill operation took.


Flood Fill Related Software