PEXSetColorApproxIndex(3) — Subroutines
Name
PEXSetColorApproxIndex - Set Color Approximation Index
Synopsis
void PEXSetColorApproxIndex(Display ∗display, XID resource_id, PEXOCRequestType req_type, unsigned int index)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
resource_idThe resource identifier of the renderer or structure.
req_typeThe request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).
indexThe color approximation table index.
Returns
None
Description
This function creates an output primitive attribute which sets the color approximation index attribute. If the specified index is not defined, index zero is used. If index zero is not defined, the result is implementation-dependent.
Errors
BadPEXOutputCommand
The color approximation index value exceeds 65534.
BadPEXRenderer
The specified renderer resource identifier is invalid.
BadPEXStructure
The specified structure resource identifier is invalid.
See Also
PEXCreateLookupTable, PEXGetImpDepConstants