Extracted from Pike v7.8 release 866 at 2017-11-12.
pike.ida.liu.se
[Top]
GTK2
GTK2.GdkColormap

Method GTK2.GdkColormap()->query_color()


Method query_color

GTK2.GdkColor query_color(int pixel)

Description

Locates the RGB color corresponding to the given hardware pixel. pixel must be a valid pixel in the colormap; it's a programmer error to call this function with a pixel which is not in the colormap. Hardware pixels are normally obtained from alloc_colors(), or from a GDK2.Image.