WriteCmap | 93
WriteCmap
Purpose Use
WriteCmap
to write an entry in a colormap.
Syntax
DError (*WriteCmap) (dev, i, r, g, b)
Return value
D_OK
if successful; otherwise, an error code.
Description
WriteCmap()
writes the colormap entry
i
with the
color (
r
,
g
,
b
). Entry zero (0) is the first entry of the
colormap. You can write multiple entries by calling
WriteCmap()
multiple times. The new values are not
effective unless you call the
UpdateCmap()
function.
For an 8-bit-per-pixel framebuffer, the colormap entry
index ranges from 0 (zero) to 255. The color values for red,
green, and blue range from 0 (zero) to 255.
Errors
DMD_ERROR_BAD_DEVICE -
Device failed to access
the colormap.
DMD_ERROR_BAD_VALUE -
Colormap index entry is
too large.
Parameter Type
Name
Description
DMdDev
dev
Device handle of the DOME
device
DLong
i
Index to colormap entry
DLong
r
Color value for red
DLong
g
Color value for green
DLong
b
Color value for blue
Содержание Dome DX/PCI
Страница 6: ......