PEXSetRenderingColorModel(3) — Subroutines
Name
PEXSetRenderingColorModel - Set Rendering Color Model
Synopsis
void PEXSetRenderingColorModel(Display ∗display, XID resource_id, PEXOCRequestType req_type, int model)
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).
modelThe rendering color model (PEXRenderingColorModelImpDep, PEXRenderingColorModelRGB, PEXRenderingColorModelCIE, PEXRenderingColorModelHSV, PEXRenderingColorModelHLS).
Returns
None
Description
This function creates an output primitive attribute which sets the rendering color model attribute. If the specified color model is not supported, an implementation-dependent model (model 0) is used. Supported values for rendering color model are inquirable via PEXGetEnumTypeInfo.
Errors
BadPEXRenderer
The specified renderer resource identifier is invalid.
BadPEXStructure
The specified structure resource identifier is invalid.
See Also
PEXGetEnumTypeInfo