96 | ReadCmap
ReadCmap
Purpose Use
Syntax
DError (*ReadCmap) (dev, i, r, g, b)
Return value
D_OK
Description
ReadCmap()
in (
Errors
DMD_ERROR_BAD_DEVICE -
the colormap.
DMD_ERROR_BAD_VALUE -
too large.
to read an entry in the colormap.
ReadCmap
Parameter Type
DMdDev
DLong
DLong
DLong
DLong
if successful; otherwise, an error code.
reads the colormap entry
,
,
). Entry zero (0) is the first entry of the colormap.
r
g
b
Name
Description
Device handle of the DOME
dev
device
Index to colormap entry
i
Pointer to receive color value
*r
for red
Pointer to receive color value
*g
for green
Pointer to receive color value
*b
for blue
Device failed to access
Colormap index entry is
and returns the color
i