Philips S1D13505 Computer Monitor User Manual


 
Epson Research and Development
Page 73
Vancouver Design Center
Programming Notes and Examples S1D13505
Issue Date: 01/02/05 X23A-G-003-07
Parameters: DevID - a registered device ID
Index - the cursor index to set. Valid values are 0 and 1
Color - a DWORD value which hold the requested color
Return Value: ERR_OK - operation completed with no problems
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 - a registered device ID
(x, y) - draw coordinates, in pixels, relative to the top left corner of the cursor
Color - a value of 0 to 3 to draw the pixel with
Return Value: ERR_OK - operation completed with no problems
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 - a registered device ID
(x1,y1) - first line endpoint (in pixels)
(x2,y2) - second line endpoint (in pixels)
Color - a value of 0 to 3 to draw the pixel with
Return Value: ERR_OK - operation completed with no problems
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'.