Filling polygons using GTK-Extra.

Fabio da Silva <[email protected]> Thu, 23 Sep 2004 14:11:30 -0600
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <[email protected]>
Hello again!

I need to draw some figures in my application that will require the 
creation and
display of polygons on the screen. On the gtkplotdata.h file I found a 
few basic
shapes like, lines, rectangles and ellipses. Is there a similar function 
for general
polygons?

I tried to fill the region defined by a set of points using 
gtk_plot_data_fill_area, but
the filling is done with respect to the x-axis... I also looked at the 
gtkplotpc.h file,
but I am not sure whether or not I could use those functions into a 
canvas widget.
I checked the CVS repository, but  couldn't find a testgtkplotpc.c file 
for some
enlightening hints either. I can try it if that's the answer, but I want 
to check with
you guys first.

Any suggestion?

    Thank you,

        Fabio.



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php