|
hi,
this is a second topic to my first one, "image is not visible".
Within a C-function which is called by an ADA main program I want to display images and plot colored lines on the images. With cairo I don't get anything displayed, see my first topic.
Now I tried it with gdk_draw_rgb_image() for the images and gdk_draw_segments () for the lines. I can see the images but only parts of the lines. I am testing it with a loop of some images and a fixed set of 5 lines. Sometimes there are 3 lines visible but not with full length. Sometimes all 5 lines are visible but again not with the full length and one of them has a gap. All lines are plotted in black. So I have to change the color.
The documentation told me that every window has 5 graphic contexts. Which one shall be changed to get colored lines and how to do it? Has somebody an explanation why the lines are not plotted with full length?
_________________ gtkNiko
|