Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmuCreaClrp(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XmuCreateColormap — create a standard colormap from information in an XStandardColormap structure. 

SYNOPSIS

#include <X11/Xmu/StdCmap.h>

Status XmuCreateColormap(display, colormap)
      Display ∗display;
      XStandardColormap ∗colormap;

ARGUMENTS

displaySpecifies the connection under which the map is created. 

colormapSpecifies the map to be created. 

DESCRIPTION

XmuCreateColormap creates any one colormap which is described by an XStandardColormap structure. 

XmuCreateColormap returns zero on failure, and non-zero on success.  The base_pixel field of the XStandardColormap structure 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 which fail 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. 

SEE ALSO

XmuAllStandardColormaps, XmuDeleteStandardColormap, XmuGetColormapAllocation, XmuLookupStdCmp, XmuStandardColormap, XmuVisualStandardColormaps. 

Xlib Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026