6.4 Creating, Copying, and Destroying Colormaps

To create a colormap for a screen, use XCreateColormap().

To create a new colormap when the allocation out of a previously shared colormap has failed because of resource exhaustion, use XCopyColormapAndFree().

To destroy a colormap, use XFreeColormap().

Next: Mapping Color Names to Values

Christophe Tronche, [email protected]