XcupStoreColors(3) | Library Functions Manual | XcupStoreColors(3) |
cc [ flag ... ] file ... -lXext [ library ... ] #include <X11/extensions/Xcup.h>
Status XcupStoreColors(Display *display, Colormap colormap, XColor *colors_in_out, int ncolors);
A Value error is generated if a pixel is not a valid index into the colormap. A BadMatch error is generated if the colormap does not belong to a GrayScale, PseudoColor, or DirectColor visual.
Applications which allocate many colors in a screen's default colormap, e.g. a color-cube or a gray-ramp, should allocate them with XCupStoreColors. By using XCupStoreColors the colors will be allocated shareable (read-only) and any other application which allocates the same color will share that color cell.
X Version 11 | X FUNCTIONS |