how do you get the color of a pixel from a pixmap ...



Hello, ...

What is the prefered way of getting the color of a given pixel of a pixmap.

This don't work :

image = gdk_get_image (GDK_WINDOW(pixmap),0,0,pixmap_width,pixmap_height)
color = gdk_image_get_pixel (image, x, y);

the resulting color is 0, both for the black background, and for a pixel i
previously filled with a black_gc colored full rectangle before.

Did i misunderstand something ?

Friendly,

Sven LUTHER



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