Return the representation of a color specification on a given graphics port.
color
convert-color port color &key errorp => color-rep
port⇩ |
A graphics port. |
color⇩ |
A color specification. |
errorp⇩ |
A generalize boolean. |
color-rep⇩ |
Representation of color on port. |
The function convert-color
returns the representation of color on the given graphics port port.
If errorp is t
(the default), then convert-color
checks for errors. Otherwise nil
might be returned.
color-rep might be a "pixel" value, which corresponds to an index into the default colormap. It is more efficient to use the result of convert-color
in place of its argument in drawing function calls, but the penalty is the risk of erroneous colors being displayed should the colormap or the colormap entry be changed.
colors=
ensure-color
ensure-rgb
unconvert-color
13.10.8 Image access
15 The Color System
CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:21