Page 132
Epson Research and Development
Vancouver Design Center
void seDrawLine(long x1, long y1, long x2, long y2, DWORD Color)
void seDrawLcdLine(long x1, long y1, long x2, long y2, DWORD Color)
void seDrawCrtLine(long x1, long y1, long x2, long y2, DWORD Color)
void seDrawTvLine(long x1, long y1, long x2, long y2, DWORD Color)
Description:
These functions draw a line between two points in the specified color.
Use seDrawLine() to draw a line on the current active surface. See seSetLcdAsActiveSur-
face(), seSetCrtAsActiveSurface() and seSetTvAsActiveSurface() for information about
changing the active surface.
Use seDrawLcdLine(), seDrawCrtLine(), and seDrawTvLine() to draw a line on the sur-
face referenced by the function name
Parameters:
x1
The X co-ordinate, in pixels, of the first endpoint of the line to be
drawn.
y1
The Y co-ordinate, in pixels, or the first endpoint of the line to be
drawn.
x2
The X co-ordinate, in pixels, of the second endpoint of the line to be
drawn.
y2
The Y co-ordinate, in pixels, of the second endpoint of the line to be
drawn.
Color
Specifies the color to draw the line with. Color is interpreted differently
at different color depths.
At 4 and 8 bit per pixel display colors are derived from the lookup table
values. The least significant byte of Color is an index into the lookup
table.
At 15 and 16 bit per pixel the lookup table is bypassed and each word of
display memory forms the color to display. At 15 bit per pixel the least
significant word directly represents the color to draw the line with 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 describes the
color to draw the line with in 5-6-5 RGB format.
Return Value:
None.
S1D13506
X25B-G-003-03
Programming Notes and Examples
Issue Date: 01/02/06