![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_110.png)
20-16
Programmer’s Manual
Parameter
Return Value
20.20
DrawHorz
Syntax
STATUS
DrawHorz
(U16 greyLevel, U16 xSrc U16 ySrc U16 width U16
dotLine U16 style)
Description
Draws a horizontal line from (xSrc ySrc) to the right for width dots.
If dot width is greater than 1, a thick horizontal line will be drawn. If dot width is
greater than 1 and the width of the horizontal line is 1, a square dot of size
indicated by dot width will be drawn.
If dotLineis non-zero, dotLine number of dots will be drawn with the specified
grey level; then, the dotLinenumber of dots will be skipped; then, the dotLine
number of dots will be drawn; and so on.
Parameter
Name
Description
greyLevel
Grey level of the ellipse
xCenter
X-coordinate of the center of ellipse
yCenter
Y-coordinate of the center of ellipse
xLength
The length of the ellipse in x-axis in pixels
yLength
The length of the ellipse in y-axis in pixels
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
Name
Description
greyLevel
Grey level of the line
Personal Portable System Manager
Programmer’s Manual
Graphics ToGraphics Tools
20-17
Return Value
20.21
DrawLine
Syntax
STATUS
DrawLine
(U16
yDest U16
Description
Draws a line from (xSrc
).
If dot width is greater than 1, a thick line will be drawn. If dot width is greater
than 1 and (xSrc ySrc
by dot width will be drawn.
), a square dot of size indicated
If dotLineis non-zero,
grey level; then, the dotLine
number of dots will be drawn; and so on.
number of dots will be drawn with the specified
xSrc
ySrc
width
dotLine
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
Name
Description
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.