Purpose
Use Inquire Color Representation to inquire the current color values in the specified workstation's color table. The color specification parameters are the coordinates of the color in the current color model at the workstation.
If the type of returned values is REALIZED and your application has neither predefined nor set the color associated with the color index, or the color index is greater than the range of the color table at the workstation, then the graPHIGS API sets the output color parameters to the color associated with color index 1.
If the type of returned values is SET and your application has predefined or set the color associated with the color index, then the graPHIGS API sets the output color parameters as closely as possible to the color associated with the color index as it was predefined or set. This may be the same as the case when the type of returned value is REALIZED.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the information is unavailable, then the values returned in the output parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
Language Bindings
pinq_colr_rep (ws_id, colr_ind, type, err_ind, colr_rep) |
PQCR (wkid, coli, ccsbsz, type, errind, ol, cspec) |
Errors
None
Related Subroutines