Epson Research and Development
Page 85
Vancouver Design Center
Programming Notes and Examples S1D13706
Issue Date: 01/02/23 X31B-G-003-03
void seReadLut(BYTE *pRGB, int Count)
Description:
seReadLut() 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.
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 The number of lookup table entries to read.
Return Value:
None.
int seSetMode(unsigned BitsPerPixel)
Description:
seSetMode() changes the color depth of the display and updates the appropriate LUT. Dis-
play memory is automatically released and then reallocated as necessary for the display
resolution.
Note
seSetMode() was previously called seSetBitsPerPixel(). It is now recommended to call
seSetMode() instead of seSetBitsPerPixel(). In addition, hardware display swapping is
enabled or disabled, based on the requirements described in seEnableHardwareDisplay-
Swapping().
IMPORTANT
When the LCD color depth is changed, memory allocated for both the main window and
sub-window display buffer is freed and the display buffer memory is reassigned. The
application must redraw the main window display and re-initialize the sub-window (if
used) and redraw the sub-window after calling seSetMode().
Parameters:
BitsPerPixel The new color depth. BitsPerPixel can be one of the following:
1, 2, 4, 8, 16.
Return Value:
ERR_OK Function completed successfully.
ERR_NOT_ENOUGH_MEMORY There is insufficient free display memory for the
given bits-per-pixel mode and display resolution.
ERR_FAILED Function failed because of invalid BitsPerPixel.
void seUseMainWinImageForSubWin(void)
Description:
This function instructs the HAL to use the image pointed to by the main window registers
as the image to be used by the sub-window. The sub-window start address and sub-win-
dow line address offset registers are programmed accordingly.
Note
It is the responsibility of the caller to first free any memory used by the sub-window be-
fore calling this function.