DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
X Version 11 (Release 6.1)

XmuCreateColormap(X3xmu)


XmuCreateColormap -- create colormap

Synopsis

cc . . . -lXmu

#include <X11/Xmu/StdCmap.h>

Status XmuCreateColormap(dpy, colormap) Display *dpy; XStandardColormap *colormap;

Arguments


dpy
Specifies the connection under which the map is created.

colormap
Specifies the map to be created.

Description

Resources created by this function are not made permanent; that is the caller's responsibility.

To create any one colormap that is described by an XStandardColormap structure, use XmuCreateColormap.

This function returns 0 on failure, and non-zero on success. The base_pixel of the colormap is set on success. Resources created by this function are not made permanent. No argument error checking is provided; use at your own risk.

All colormaps are created with read-only allocations, with the exception of read-only allocations of colors failing to return the expected pixel value, and these are individually defined as read/write allocations. This is done so that all the cells defined in the colormap are contiguous for use in image processing. This typically happens with White and Black in the default map.

Colormaps of static visuals are considered to be successfully created if the map of the static visual matches the definition given in the standard colormap structure.

References

XmuAllStandardColormaps(X3xmu), XmuVisualStandardColormaps(X3xmu), XmuLookupStandardColormap(X3xmu), XmuGetColormapAllocation(X3xmu), XmuStandardColormap(X3xmu), XmuDeleteStandardColormap(X3xmu)
Xlib - C Language X Interface


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004