![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_42.png)
6-26
Using Using Graphics Tools
Programmer’s Manual
In this example, the dot width is 1. The calling of DrawCircle(BLACK, 560, 29In this example, the dot width is 1. The calling of DrawEllipse(BLACK, 560, 290,
150, REPLACE_STYLE) will draw a circle centering at (560, 290) with radius 150, 100, REPLACE_STYLE) will draw an ellipse centering at (560, 290) with the
As the circle is drawn outside the LCD display screen, nothing will be seen onlongest distance on y axis from center to border is 100 pixels and the longest
LCD.
6.23
Draw an Ellipse
STATUS
DrawEllipse
(U16 greyLevel U16 xCenter U16 yCenter U16
xLength U16 yLength U16 style)
This routine will draw a ellipse centering at (xCenter, yCenter) with the specifiThis routine will draw an arc connecting (x1, y1) and (x2, y2).
size.
If the dot width is greater than 1, integer truncated (dot width - 1)/2 lines are drDrawArc(BLACK, x1, y1, x2, y2, REPLACE_STYLE) is called, the following arcs
inside the ellipse and (dot width)/2 lines drawn outside the ellipse.
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.
Example 6-20 Draw an ellipse with black outline
STATUS ret;
/* draw an ellipse with center at (560, 290), horizontal length 150 and vertical
length 100 */
ret = DrawEllipse(BLACK, 560, 290, 150, 100, REPLACE_STYLE);
Figure 6-17 Screen output for Example 6-19
LCD
Panning Screen
(50, 50)
(0, 0)
(560, 290)
150
Personal Portable System Manager
Programmer’s Manual
6-27
distance on x axis from center to border is 150 pixels.
6.24
Draw an Arc
STATUS
DrawArc
(U16
style)
DrawArc() will draw a quarter of an ellipse centering at (x2, y1). If
will be drawn according to the values of (x1, y1) and (x2, y2):
Figure 6-18 Screen output for
(50,50)
(0,0)
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.