how to zoom a pixmap containing symbols (NEXT !!!!!)



Hi (again),

following my morning Email, I found the answer...... (sorry)

The function allowing the setting of the foregroung GC was symply:

        gdk_rgb_gc_set_foreground()

Well, now my program zoom image data and symbols, but the colors are not
exactly the same (for example):

        black is black
        purple is purple
        blue is red           (!)
        green is green
        yellow is light blue  (!)
        red is blue           (!)
        white is white

and more, background of entries on the main window change according the color
of the current pixel....

for the GC I use image_drawing_area->style->white_gc. It seems to be a bad
idea, but it's a interresting information.

Well the final question is:

         is there a difference between the return value of:

                guint32    
                gdk_image_get_pixel (GdkImage *image, gint x, gint y);

        and the setting value of

                void
                gdk_rgb_gc_set_foreground (GdkGC *gc, guint32 rgb);

Many thanks

Luc Weber
Geneva Observatory
Switzerland





 





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