int PEXMakeColormap( Display *display, XVisualInfo *vis_info, PEXColorApproxEntry *capx_info Colormap *colormap_id_return )
Zero if successful; otherwise, one of the following return values:
Invoke PEXMakeColormap to create an X Colormap with the Visual described by vis_info. It uses the provided PEX color approximation table entry (in capx_info) as a guide in initializing the Colormap contents.
This function modifies only the cells in the region of the Colormap described by the color approximation entry from their default values. The function initializes these cells with read-only permission to improve the chances of sharing colors.
If successful, this function returns the new Colormap ID in colormap_id_return. The function does not create or alter any X server properties.
If you specify a color approximation entry of type PEXColorRange, the function initializes the colormap to contain a gray ramp.
See function return values, also:
For an overview, see PEXlib Access and Information Functions.