-
public bool alloc_color (Color color, bool writeable, bool best_match)
Allocates a single color from a colormap.
-
public int alloc_colors (Color[] colors, bool writeable, bool best_match, bool success)
Allocates colors from a colormap.
-
public void change (int ncolors)
Changes the value of the first ncolors in a private colormap to match the values in the
colors array in the colormap. This function is obsolete and should not be used. See gdk_color_change.
-
public void free_colors (Color[] colors)
Frees previously allocated colors.
-
public weak Screen get_screen ()
Gets the screen for which this colormap was created.
-
public weak Visual get_visual ()
Returns the visual for which a given colormap was created.
-
public void query_color (ulong pixel, out Color _result)
Locates the RGB color in colormap corresponding to the given hardware pixel 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 Image. (A Image contains image
data in hardware format, a Pixbuf contains image data in a canonical
24-bit RGB format.)