Click to See Complete Forum and Search --> : GDI+ doesnt have FloodFill


Gonzales
February 1st, 2005, 10:34 AM
strangely enough the GDI+ does not support the GDI's function FloodFill.
Again with the risk game that i'm developing, I depend on that function.
other that implementing the function myself, does anyone have an idea?
maybe it is possible to use the GDI's FloodFill somehow??

Norfy
February 1st, 2005, 03:55 PM
Most if not all the original GDI is available if you use P/Invoke.

On a previous thread I had a go with drawing XOR lines but it should show you what steps are required. Previous Thread (http://www.codeguru.com/forum/showthread.php?t=279221&highlight=GDI) It even contains a method to convert .NET Argb values to GDI RGB values...