Epson Research and Development
Page 71
Vancouver Design Center
Programming Notes and Examples
S1D13505
Issue Date: 01/02/05
X23A-G-003-07
Description:
This routine draws an ellipse with the center located at (xc,yc). The xr and yr param-
eters specify the x any y radii, in pixels, respectively. The ellipse will be drawn in
the color specified in 'Color'.
Parameters:
DevID
- registered device ID
(xc, yc)
- The center location of the ellipse (in pixels)
xr
- horizontal radius of the ellipse (in pixels)
yr
- vertical radius of the ellipse (in pixels)
Color
- The color to draw the ellipse
- At 1, 2, 4, and 8 bpp Color is an index into the Look-Up Table.
- At 15/16 bpp Color defines the color directly
(i.e. rrrrrggggggbbbbb for 16 bpp)
SolidFill
- unused
Return Value: ERR_OK
- operation completed with no problems.
Note
The 'SolidFill' argument is currently unused and is included for future considerations.
int seDrawCircle(int DevID, long xc, long yc, long Radius, DWORD Color, BOOL
SolidFill)
Description:
This routine draws an circle with the center located at (xc,yc) and a radius of Radius.
The circle will be drawn in the color specified in Color.
Parameters:
DevID
- registered device ID
xc, yc
- The center of the circle (in pixels)
Radius
- the circles radius (in pixels)
Color
- The color to draw the ellipse
- At 1, 2, 4, and 8 bpp Color is an index into the Look-Up Table.
- At 15/16 bpp Color defines the color directly
(i.e. rrrrrggggggbbbbb for 16 bpp)
SolidFill
- unused
Return Value: ERR_OK
- operation completed with no problems.
Note
The SolidFill argument is currently unused and is included for future considerations.
11.5.6 Hardware Cursor
The routines in this section support hardware cursor functionality. Several of the calls look
similar to normal drawing calls (i.e. seDrawCursorLine()); however, these calls remove the
programmer from having to know the particulars of the cursor memory location, layout and
whether portrait mode is enabled. Note that hardware cursor and ink layers utilize some of
the same registers and are mutually exclusive.
int seInitCursor(int DevID)
Description:
Prepares the hardware cursor for use. This consists of determining a location in
display buffer for the cursor, setting cursor memory to the transparent color and
enabling the cursor.