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

XmuGetColormapAllocation(X3xmu)


XmuGetColormapAllocation -- determine best allocation of colors

Synopsis

cc . . . -lXmu

#include <X11/Xmu/StdCmap.h>

Status XmuGetColormapAllocation(vinfo, property, red_max, green_max, blue_max) XVisualInfo *vinfo; Atom property; unsigned long *red_max, *green_max, *blue_max;

Arguments


vinfo
Specifies visual information for a chosen visual.

property
Specifies one of the standard colormap property names.

red_max
Returns maximum red value.

green_max
Returns maximum green value.

blue_max
Returns maximum blue value.

Description

To determine the best allocation of reds, greens, and blues in a standard colormap, use XmuGetColormapAllocation.

XmuGetColormapAllocation returns 0 on failure, non-zero on success. It is assumed that the visual is appropriate for the colormap property.

References

XmuAllStandardColormaps(X3xmu), XmuVisualStandardColormaps(X3xmu), XmuLookupStandardColormap(X3xmu), XmuStandardColormap(X3xmu), XmuCreateColormap(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