Cairo ->fill question
- From: Daniel Kasak <dan entropy homelinux org>
- To: gtk-perl-list gnome org
- Subject: Cairo ->fill question
- Date: Tue, 04 Mar 2008 19:35:38 +1100
Hi all.
I'm doing some graphing with Cairo, and I've run into a problem. I'm
doing a cumulative line graph with 2 series. The 1st series is working
fine.
The 2nd series is done a little strangely ( largely because of a brain
fart when I was writing it ), but anyway, it happens like this ...
For each point, I trace out the ceiling of the 1st series, ( ie
->move_to, ->line_to, ->stroke ), then I move up and trace out the
ceilng of the 2nd series ( another ->move_to, ->line_to, ->stroke ).
When I close up the thing and tell it to fill, nothing happens. The
border is getting drawn correctly, and looks like it forms an enclosed
shape. Is ->fill supposed to work if I draw the line non-continuously?
I can rewrite it to draw continuously. I'm just wondering why it doesn't
work.
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]