void PEXOCCSetColorApproxIndex( PEXOCC context, unsigned int index )
void PEXSetColorApproxIndex( Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int index )
None.
Invoke PEXOCCSetColorApproxIndex to create an attribute output command which sets the color approximation index attribute in the renderer's pipeline state according to the value specified by index.
Use color approximation index to select an entry of the renderer's color approximation table. Color approximation defines how, at the end of the rendering pipeline, colors (except their alpha components) are transformed into pixel values.
If you specify an undefined color index, then the index defaults to color index zero. If the index you specify exceeds 65534, then the implementation issues a BadPEXOutputCommand error.
The color approximation function is a member of the global attribute set.
For an overview and for a list of all output attribute functions, see Output Attribute Functions.