drawing segments over an image



        Hi !

        I'm writing an application where I need to draw colored
        segments over an image that is updated regularly... But
        they are not drawn in the drawable's window.

        Moreover, I also used to draw other segments in a drawing
        area, with black background and white foreground, but since
        I added the drawing area for the image, I can no more do that
        and must draw black fg over white bg (gc foreground is always
        black and never white -- or other color since I allocate a few
        colors).

        Here is the code I used :
static GdkColor black   = { 0,     0,     0,     0};

...

    gdk_window_set_background (window, &black);
    gc  = gdk_gc_new (window);
    gdk_gc_set_background (black, &black);


        Thanks for help...


-- 
BOFH excuse #88:
Boss' kid fucked up the machine





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