RE: Win32Lib API Floodfill?
- Posted by Brian Broker <bkb at cnw.com> Aug 05, 2004
- 375 views
cklester wrote: > > > posted by: cklester <cklester at yahoo.com> > > Brian Broker wrote: > > cklester wrote: > > > posted by: cklester <cklester at yahoo.com> > > > Don wrote: > > > > Dont know if this would interest you, but GDI has a flood fill. > > > > API: ExtFloodFill > > > Yeah, it does interest me 'cuz I was lookin' for that in > > > msimg.dll. heh. :) > > > > Are you looking to flood to a border of a specified color or flood one > > color to another color? > > To a border... It's a black background with an object drawn in pink. I > want to fill the interior of that object (which can be any enclosed > shape, regular or irregular). > > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/ OK, I've updated my floodfill code and separated it into 2 functions: floodFillSurface and floodFillBorder. demo2.exw should help you. Get it from http://cnw.com/~bkb/Eu/floodfill.zip -- Brian