WriteGCT
Purpose Use
Syntax
DError (*WriteGCT) (dev, i, r, g, b)
Return value
D_OK
Description
WriteGCT()
(
r
To write multiple entries, call
The new values are not effective unless you call the
member function.
For an 8-bit-per-entry colormap, the GCT entry index ranges
from 0 (zero) to 255. The gamma values for red, green, and
blue range from 0 (zero) to 1023.
Errors
DMD_ERROR_BAD_DEVICE -
DMD_ERROR_BAD_VALUE -
to write an entry in the GCT.
WriteGCT
Parameter Type
DMdDev
DLong
DLong
DLong
DLong
if successful; otherwise, an error code.
writes the GCT entry
,
,
). Entry zero (0) is the first entry of the GCT.
g
b
Name
Description
Device handle of the DOME
dev
device
Index to GCT entry
i
Gamma value for red
r
Gamma value for green
g
Gamma value for blue
b
with gamma values
i
WriteGCT()
Device failed to access the GCT.
GCT index entry is too large.
WriteGCT | 99
multiple times.
UpdateGCT()