Epson S1D13706 Technical Manual page 252

Embedded memory lcd controller
Hide thumbs Also See for S1D13706:
Table of Contents

Advertisement

Page 92
void seDrawRect(long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill)
void seDrawMainWinRect(long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill)
void seDrawSubWinRect(long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill)
Description:
Parameters:
Return Value:
S1D13706
X31B-G-003-03
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-
ordinate (x2, y2). The SolidFill parameter allows the programmer to select whether to fill
the interior of the rectangle or to only draw the border.
Use seDrawRect() to draw a rectangle on the current active display surface. See seSet-
MainWinAsActiveSurface() and seSetSubWinAsActiveSurface() for information about
changing the active surface.
Use seDrawMainWinRect() and seDrawSubWinRect() to draw a rectangle on the display
surface indicated by the function name.
If no memory was allocated to the surface, these functions return without writing to dis-
play memory.
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 1, 2, 4 and 8 bpp, display colors are derived from the lookup table
values. The least significant byte of Color is an index into the lookup
table.
At 16 bpp the lookup table is bypassed and each word of
display memory forms the color to display. In this 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 to draw only the rectangle border. Set to TRUE
to instruct this routine to fill the interior of the rectangle.
None
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/23

Advertisement

Table of Contents
loading

Table of Contents