how do you get the color of a pixel from a pixmap ...
- From: Sven LUTHER <luther maxime u-strasbg fr>
- To: gtk-list redhat com
- Subject: how do you get the color of a pixel from a pixmap ...
- Date: Thu, 20 May 1999 15:31:36 +0200
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]