![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_41.png)
6-28
Using Using Graphics Tools
Programmer’s Manual
If the dot width is greater than 1, integer truncated (dot width - 1)/2 lines are drawn
inside the arc and (dot width)/2 lines drawn outside the arc.
If both fill pattern mode and border mode are set, those area inside arc which is
not covered by the border of the arc will be filled.
If fill pattern is set and border is off, those area inside and on the arc border will be
filled.
(x1 < x2) and (y1 < y2)
(x1 < x2) and (y1 > y2)
(x1 > x2) and (y1 < y2)
(x1 > x2) and (y1 > y2)
Figure 6-19 Cases of DrawArc
(x1, y1)
(x2, y2)
(x1, y1)
(x2, y2)
(x2, y2)
(x1, y1)
(x1, y1)
(x2, y2)
Personal Portable System Manager
Programmer’s Manual
6-25
In this example, the dot width is 3 and fill Pattern mode is 1. The calling of
DrawRec(BLACK, 310, 250, 500, 400, 0, REPLACE_STYLE) will fill a rectangle
with top left corner at (309, 249) and bottom right corner at (501, 401) on panning
screen. However, only a smaller rectangular area from (309, 249) to (369, 289)
will be seen on the LCD display screen.
6.22
Draw a Circle
STATUS
DrawCircle
,
U16 style)
This routine will draw a circle centering at (xCenter, yCenter) with the specified
radius and grey level.
If the dot width is greater than 1, integer truncated (dot width - 1)/2 lines are drawn
inside the circle and (dot width)/2 lines drawn outside the circle.
If both fill pattern mode and border mode are set, those area inside the circle
which is not covered by border will be filled.
If fill pattern mode is set and border mode is off, the area inside and on the circle
border will be filled.
Example 6-19 Draw a circle with black outline
STATUS ret;
/* draw a black outlined circle with center at (560, 290) and radius 150 */
ret = DrawCircle(BLACK, 560, 290, 150, REPLACE_STYLE);
Figure 6-16 Screen output for
(50, 50)
(0, 0)
(310, 288)
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.