Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gdkColormapQueryColor

gdkColormapQueryColor


Description

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 gdkColormapAllocColors, or from a GdkImage. (A GdkImage contains image data in hardware format, a GdkPixbuf contains image data in a canonical 24-bit RGB format.)

Usage

gdkColormapQueryColor(object, pixel)

Arguments

object

a GdkColormap

pixel

pixel value in hardware display format

Details

This function is rarely useful; it's used for example to implement the eyedropper feature in GtkColorSelection.

Value

A list containing the following elements:

result

GdkColor with red, green, blue fields initialized

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.