Ian King <[EMAIL PROTECTED]> writes:
> With gtk+ 1.2, if my visual is a GDK_TRUE_COLOR_VISUAL, what is the easiest 
> way to retrieve rgb values from a certain pixel value.
> 

Probably:

 image = gdk_image_get(drawable, x, y, 1, 1);
 pixel = gdk_image_get_pixel (image, 0, 0);
 gdk_colormap_query_color (colormap, pixel, &color);

Colormap must actually be the colormap for drawable.

Havoc



_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to