flood fill



Hi,
 
I'm trying to write a custom procedure that would flood fill an area using a color (or texture). I have used the drawing_area widget
and drew an arbitrary closed polygon on it using the gdk_draw_line() function (black lines over a white background). All I need to do is fill in the pixels within the boundary. Does anyone know how I can get the boundary. (I obviously have the points of the polygon vertices, but I would need the scan-line points generated from the draw_line function). Perhaps I can capture the color at the (x,y) positions? anyone know how?
 
Thanks,
Saul.  
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]