Page 146
Epson Research and Development
Vancouver Design Center
void seSetInkColor(int index, DWORD color)
void seSetLcdInkColor(int index, DWORD color)
void seSetCrtInkColor(int index, DWORD color)
void seSetTvInkColor(int index, DWORD color)
Description:
These routines allow the user to set the either of the two user definable hardware ink layer
colors.
The hardware ink layer can be thought of as a four color image of which only two colors
can be changed. The non-changeable colors will displays as transparent and inverted col-
ors.
Call seSetInkColor() to change the in colors for the current active surface.
Call seSetLcdInkColor(), seSetCrtInkColor(), or seSetTvInkColor() to change the color
for the surface indicated by the function name.
Parameters:
Index
Index to specifies which of the two changeable colors to access. Valid
values for Index are 0 and 1.
Color
The new color to set as the ink layer color.
The color values in the dword are arranged as follows:
xxxx xxxx xxxR RRRR xxGG GGGG xxxB BBB
Where x is don’t care (set to 0), R is five bits of red intensity, G is six
bits of green intensity and B is five bits of blue intensity.
Return Value:
None.
void seSetInkPixel(long x, longy, DWORD color)
void seSetLcdInkPixel(long x, long y, DWORD color)
void seSetCrtInkPixel(long x, longy, DWORD color)
void seSetTvInkPixel(long x, long y, DWORD color)
Description:
These functions are intended for drawing on the hardware ink layer a pixel at a time.
Call seSetInkPixel() to set a pixel in the ink layer associated with the current active sur-
face.
Call seSetLcdInkPixel(), seSetCrtInkPixel(), and seSetTvInkPixel() to set pixels in the ink
layer associated with the display surface indicated in the function name.
Parameters:
x
The X co-ordinate of the ink layer, in pixels, at which to set the pixel
color. Valid values for x range from 0 to display width - 1.
y
The Y co-ordinate of the ink layer, in pixels, a which to set the pixel
color. Valid values for y range from 0 to display height - 1.
Color
Specifies which of the four cursor colors set the pixel to.Valid values
for Color are:
0 - to set the pixel to the solid color 0
1 - to set the pixel to the solid color 1
2 - to set the pixel to the transparent color
3 - to set the pixel to the inverted color.
Return Value:
None.
S1D13506
X25B-G-003-03
Programming Notes and Examples
Issue Date: 01/02/06