Lut Manipulation - Epson S1D13704 Technical Manual

Embedded memory color lcd controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center

9.2.7 LUT Manipulation

Programming Notes and Examples
Issue Date: 01/02/12
int seDrawRect(int DevID, long x1, long y1, long x2, long y2,
DWORD Color, BOOL SolidFill)
Description:
This routine draws and optionally fills a rectangular area of display buffer. The
upper right corner is defined by x1,y1 and the lower right corner is defined by x2,y2.
The color, defined by Color, applies both to the border and to the optional fill.
Parameters:
DevID
x1, y1
x2, y2
Color
SolidFill
Return Value: ERR_OK - operation completed with no problems.
These functions deal with altering the color values in the Look-Up Table.
int seSetLut(int DevID, BYTE *pLut, int Count)
Description:
This routine writes one or more LUT entries. The writes always start with Look-Up
Table index 0 and continue for 'Count' entries.
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
pLut
Count
Return Value: ERR_OK - operation completed with no problems
- registered device ID
- top left corner of the rectangle (in pixels)
- bottom right corner of the rectangle (in pixels)
- The color to draw the rectangle outline and fill with
- Color is an index into the Look-Up Table.
- Flag whether to fill the rectangle or simply draw the border.
- Set to 0 for no fill, set to non-0 to fill the inside of the rectangle
*
- registered device ID
- pointer to an array of BYTE lut[16][3]
lut[x][0] == RED component
lut[x][1] == GREEN component
lut[x][2] == BLUE component
- the number of LUT entries to write.
Page 59
S1D13704
X26A-G-002-03

Advertisement

Table of Contents
loading

Table of Contents