Rubberbanding line on image



Hello,

I'm trying to get a solid-color rubberbanding line on an image.

I got a rubberbanding line to erase and redraw on an image using the XOR
function of a GC but the color of the line is not solid. The color of the
line seems to vary and change with the pixels of the image.

Does anyone have any idea how the foreground and background colors should be
set up?

On my on_expose_event handler, I use a GC and call window->draw_rgb_image to
put an image on a drawing area. I set up a separate GC to use XOR with
foreground color green, and background color black. I erase and redraw a
line on the same window with this GC_XOR in the on_motion_notify_event
handler.

I can get a rubberbanding line and restore the pixels on the image but the
color of the line is not solid green. Any ideas?

Thanks for your help,
Andy



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