![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_109.png)
20-18
Programmer’s Manual
Parameter
Return Value
20.22
DrawRec
Syntax
STATUS
DrawRec
(U16 greyLevel U16 xSrc U16 ySrc U16 xDest U16
yDest U16 dotLine U16 style)
Description
Draws a rectangular outline with the top-left corner at (xSrc ySrc) and bottom-
right corner at (xDest, yDest).
If dot width is greater than 1, a thick rectangle will be drawn.
If both fill pattern mode and border mode are set, those area inside the
rectangle which is not covered by the border will be filled.
If fill pattern mode is set and border mode is off, the area inside and on the
rectangle border will be filled.
Name
Description
greyLevel
Grey level of the line
xSrc
X-coordinate of the source point
ySrc
Y-coordinate of the source point
xDest
X-coordinate of the destination point
yDest
Y-coordinate of the destination point
dotLine
Dotted line drawing. This argument
accepts a number which represents an
equal number of solid dots and skipped
dots during line drawing. A value of 0
represents a solid line.
style
Output Style (AND_STYLE, OR_STYLE,
EXOR_STYLE, or REPLACE_STYLE).
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_LCD_GREY
Invalid grey level value
PPSM_ERR_LCD_X
Invalid x-coordinate
PPSM_ERR_LCD_Y
Invalid y-coordinate
PPSM_ERR_LCD_STYLE
Invalid style
Personal Portable System Manager
Programmer’s Manual
Graphics ToGraphics Tools
20-15
If dot width is 2, a square dot of length 2 will be drawn where the top left corner
is (xPos yPos). If dot width is greater than 2, a disc with the center at (
yPos) will be drawn.
Parameter
Return Value
20.19
DrawEllipse
Syntax
STATUS
DrawEllipse
xLength U16
Description
Draws an ellipse centered at (
in the x-axis, and yLengthas the height in the y-axis.
as the width
If dot width is greater than 1, a thick ellipse will be drawn.
If both fill pattern mode and border mode are set, those area inside ellipse
which is not covered by the border will be filled.
If fill pattern mode is set and border mode is off, the area inside and on the
ellipse border will be filled.
Name
Description
greyLevel
xPos
yPos
style
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_LCD_GREY
Invalid grey level value
PPSM_ERR_LCD_X
Invalid x-coordinate
PPSM_ERR_LCD_Y
Invalid y-coordinate
PPSM_ERR_LCD_STYLE
Invalid style
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.