Epson S1D13506 Technical Manual page 365

Color lcd/crt/tv controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
DWORD seGetPixel(long x, long y)
DWORD seGetLcdPixel(long x, long y)
DWORD seGetCrtPixel(long x, long y)
DWORD seGetTvPixel(long x, long y)
Description:
Parameters:
Return Value:
Programming Notes and Examples
Issue Date: 02/03/21
Returns the pixel color at the specified display location
Use seGetPixel() to read the pixel color at the specified x,y co-ordinates on the current
active surface. See seSetLcdAsActiveSurface(), seSetCrtAsActiveSurface() and
seSetTvAsActiveSurface() for information about changing the active surface.
Use seGetLcdPixel(), seGetCrtPixel(), and seGetTvPixel() to read the pixel color at the
specified x,y co-ordinate on the display surface referenced in the function name.
x
The X co-ordinate, in pixels, of the pixel to read
y
The Y co-ordinate, in pixels, of the pixel to read
The return value is a dword describing the color read at the x,y co-ordinate. Color is inter-
preted differently at different color depths.
At 4 and 8 bit per pixel, display colors are derived from the lookup table values. The return
value is an index into the lookup table. The red, green and blue components of the color
can be determined by reading the lookup table values at the returned index.
At 15 and 16 bit per pixel the lookup table is bypassed and each word of display memory
form the color to display. At 15 bit per pixel the least significant word of the return value
directly represents the color of the pixel as a 5-5-5 RGB value with the most significant bit
of the word discarded. In 16 bit per pixel display mode the least significant word of the
return value describes the color as a 5-6-5 RGB value.
Page 131
S1D13506
X25B-G-003-04

Advertisement

Table of Contents
loading

Table of Contents