Epson S1D13506 Technical Manual page 367

Color lcd/crt/tv controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
void seDrawRect(long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill)
void seDrawLcdRect(long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill)
void seDrawCrtRect(long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill)
void seDrawTvRect(long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill)
Description:
Parameters:
Return Value:
Programming Notes and Examples
Issue Date: 02/03/21
These routines draw a rectangle on the screen in the specified color. The rectangle is
bounded on the upper left by the co-ordinate x1,y1 and on the lower right by the co-ordi-
nate x2,y2. The SolidFill parameter allows the programmer to select whether to fill the
interior or the rectangle or to only draw the border.
Use seDrawRect() to draw a rectangle on the current active display surface.See seSetL-
cdAsActiveSurface(), seSetCrtAsActiveSurface() and seSetTvAsActiveSurface() for
information about changing the active surface.
Use seDrawLcdRect(), seDrawCrtRect(), and seDrawTvRect() to draw a rectangle on the
display surface indicated by the function name.
x1
The X co-ordinate, in pixels, of the upper left corner of the rectangle.
y1
The Y co-ordinate, in pixels, of the upper left corner of the rectangle.
x2
The X co-ordinate, in pixels, of the lower right corner of the rectangle.
y2
The Y co-ordinate, in pixels, of the lower right corner of the rectangle.
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.
SolidFill
A boolean value specifying whether to fill the interior of the rectangle.
Set to FALSE "0" to draw only the rectangle border. Set to TRUE
"non-zero" to instruct this routine to fill the interior of the rectangle.
None
Page 133
S1D13506
X25B-G-003-04

Advertisement

Table of Contents
loading

Table of Contents