Page 60
Epson Research and Development
Vancouver Design Center
S1D13704
Programming Notes and Examples
X26A-G-002-03
Issue Date: 01/02/12
int seGetLut(int DevID, BYTE *pLUT, int Count)
Description: This routine reads one or more LUT entries and puts the result in the byte array
pointed to by pLUT.
A Look-Up Table entry consists of three bytes, one each for Red, Green, and Blue.
The color information is stored in the four least significant bits of each byte.
Parameters: DevID
-
registered
device
ID
pLUT
- pointer to an array of BYTE lut[16][3]
- pLUT must point to enough memory to hold 'Count' x 3 bytes of data.
Count
- the number of LUT elements to read.
Return Value: ERR_OK - operation completed with no problems
int seSetLutEntry(int DevID, int Index, BYTE *pEntry)
Description: This routine writes one LUT entry. Unlike seSetLut, the LUT entry indicated by
'Index' can be any value from 0 to 15.
A Look-Up Table entry consists of three bytes, one each for Red, Green, and Blue.
The color information is stored in the four least significant bits of each byte.
Parameters: DevID
-
registered
device
ID
Index
- index to LUT entry (0 to 15)
pLUT
- pointer to an array of three bytes.
Return Value: ERR_OK - operation completed with no problems
int seGetLutEntry(int DevID, int index, BYTE *pEntry)
Description: This routine reads one LUT entry from any index.
A Look-Up Table entry consists of three bytes, one each for Red, Green, and Blue.
The color information is stored in the four least significant bits of each byte.
Parameters: DevID
-
registered
device
ID
Index
- index to LUT entry (0 to 15)
pEntry
- pointer to an array of three bytes
Return Value: ERR_OK - operation completed with no problems
*