Page 126
Epson Research and Development
Vancouver Design Center
void seReadLut(BYTE *pRGB, int Count)
void seReadLcdLut(BYTE *pRGB, int Count)
void seReadCrtLut(BYTE *pRGB, int Count)
void seReadTvLut(BYTE *pRGB, int Count)
¦Description:
This routine reads one or more lookup table entries and returns the result in the array
pointed to by pRGB. The read always begins at the first lookup table entry.
seReadLut() reads the first Count lookup table entries from the current active surface. See
seSetLcdAsActiveSurface(), seSetCrtAsActiveSurface() and seSetTvAsActiveSurface()
for information about changing the active surface.
seReadLcdLut(), seReadCrtLut(), and seReadTvLut() read the first Count entries from the
surface indicated by the function name.
This routine allows reading all the lookup table elements used by the current color depth in
one library call.
Parameters:
pRGB
A pointer to an array of bytes large enough to hold the requested
number of lookup table entries. Each lookup table entry consists of
three bytes; the first byte will contain the red data, the second the green
data and the third the blue data.
Count
None.
The number of lookup table entries to read.
Return Value:
DWORD seSetBitsPerPixel(unsigned BitsPerPixel)
DWORD seSetLcdBitsPerPixel(unsigned BitsPerPixel)
DWORD seSetCrtBitsPerPixel(unsigned BitsPerPixel)
DWORD seSetTvBitsPerPixel(unsigned BitsPerPixel)
DWORD seSetLcdCrtBitsPerPixel(unsigned BitsPerPixel)
DWORD seSetLcdTvBitsPerPixel(unsigned BitsPerPixel)
Description:
These functions change the color depth of the display and update the appropriate LUT.
Display memory is automatically released and then reallocated as necessary for the dis-
play size.
seSetBitsPerPixel() changes the bits-per-pixel mode for the active surface. Memory is
reassigned according to the descriptions for each of the following mode sets.
seSetLcdBitsPerPixel() changes the bits-per-pixel mode for the panel display. This func-
tion uses the current register settings for SwivelView to determine the amount of memory
to allocate, and what starting register addresses are required.
Note
seSetLcdBitsPerPixel() frees CRT/TV memory in order to guarantee the LCD image
starts at the beginning of display buffer memory.
seSetCrtBitsPerPixel() and seSetTvBitsPerPixel() change the bits-per-pixel mode for the
indicated display device. These functions ignore the rotate90 and rotate180 register bits.
Memory is allocated only for the landscape mode.
S1D13506
X25B-G-003-03
Programming Notes and Examples
Issue Date: 01/02/06