Re: flood fill
- From: Paul Davis <paul linuxaudiosystems com>
- To: Saul Simhon <saul cim mcgill ca>
- Cc: gtk-list gnome org
- Subject: Re: flood fill
- Date: Sun, 29 Dec 2002 23:18:25 -0500
>I'm trying to write a custom procedure that would flood fill an area using a c
>olor (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 point
>s generated from the draw_line function). Perhaps I can capture the color at t
>he (x,y) positions? anyone know how?
gdk_draw_polygon ?
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]