looking for interior floodfill routine... without border color 
Author Message
 looking for interior floodfill routine... without border color

I'm using BC 3.1 and I'm using the turbo graphics functions to write a simple
paint program.  I'm satisifed with the turbo functions but the only problem
is the floodfill() routine.  It requires a border color value.  I made it
search the line for the first pixel thats different and I use that for the
border color.  The only problem is when one of the sides of the shape being
filled is a different color.  This is why I need a routine that fills until
it runs into any pixel DIFFERENT from the seed pixel.  There seems to be
no turbo function to do this.  Does anyone know where I can find a good
function like this?  Ilooked at a bunch of libraries like Megagraph and
a few others but I don't wanna use a totally new library now that I've come
so far with the turbo functions in my program.  Also, all the libraries I
ran into weren't quite good enough.  One required 386 mode...  I just need
this one function.

Also:  I figured I'd minimize the damage of a fill escaping the shape by
using a viewport --setport() to restirct it to only the drawing window.
This seemed to have no effect... When the fill escapes the shape, it ends
upnot only doing the whole screen but it starts doing crazy stuff and crashes
the whole system.  Any idea why?  

plesae e-mail me or post here...

Tue, 15 Oct 1996 10:17:08 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Window Without border and without title bar

2. Frame client without borders(without WS_EX_CLIENTEDGE) ?

3. how to change my child window's border color and title bar color

4. How to create a windows without border?

5. Button without borders

6. Move a Form without a Border?

7. How to create a windows without border?

8. window without titlebar and border

9. CFrameWnd without an border

10. How to create a windows without border?

11. button without border

12. How to vertically center text in CEdit without borders


Powered by phpBB® Forum Software