Epson S1D13505 Technical Manual page 227

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/05
Parameters:
DevID
Index
Color
Return Value: ERR_OK
ERR_FAILED- returned if Index if other than 0 or 1
int seSetCursorPixel(int DevID, long x, long y, DWORD Color)
Description:
Draws a single pixel into the hardware cursor. The pixel will be of color 'Color'
located at (x,y) pixels relative to the top left of the hardware cursor.
The value of 'Color' must be 0 to 3. Values 0 and 1 refer to the two user definable
colors. If 'Color' is 2 then the pixel will be transparent and if the value is 3 the pixel
will be an inversion of the underlying screen color.
Parameters:
DevID
(x, y)
Color
Return Value: ERR_OK
int seDrawCursorLine(int DevID, long x1, long y1, long x2, long y2, DWORD Color)
Description:
Draws a line between the two endpoints, (x1,y1) and (x2,y2), in the hardware cursor
display buffer using color 'Color'.
The value of 'Color' must be 0 to 3. Values 0 and 1 refer to the two user definable
colors. If 'Color' is 2 then the pixel will be transparent and if the value is 3 the pixel
will be an inversion of the underlying screen color.
Parameters:
DevID
(x1,y1)
(x2,y2)
Color
Return Value: ERR_OK
int seDrawCursorRect(int DevID, long x1, long y1, long x2, long y2, DWORD Color,
BOOL SolidFill)
Description:
This routine will draw a rectangle in hardware cursor memory. The upper left corner
of the rectangle is defined by the point (x1,y1) and the lower right is the point
(x2,y2). Both points are relative to the upper left corner of the cursor.
The value of 'Color' must be 0 to 3. Values 0 and 1 refer to the two user definable
colors. If 'Color' is 2 then the pixel will be transparent and if the value is 3 the pixel
result will be an inversion of the underlying screen color.
If 'SolidFill' is specified the interior of the rectangle will be filled with 'Color',
otherwise the rectangle is only outlined in 'Color'.
- a registered device ID
- the cursor index to set. Valid values are 0 and 1
- a DWORD value which hold the requested color
- operation completed with no problems
- a registered device ID
- draw coordinates, in pixels, relative to the top left corner of the cursor
- a value of 0 to 3 to draw the pixel with
- operation completed with no problems
- a registered device ID
- first line endpoint (in pixels)
- second line endpoint (in pixels)
- a value of 0 to 3 to draw the pixel with
- operation completed with no problems
Page 73
S1D13505
X23A-G-003-07

Advertisement

Table of Contents
loading

Table of Contents