GFXPIE
- draw a pie
|
Low-level graphics
(AFL 3.0) |
| SYNTAX |
GfxPie( x1, y1, x2, y2, x3, y3, x4, y4 ) |
| RETURNS |
NOTHING |
| FUNCTION |
Draws a pie-shaped wedge by drawing an elliptical arc whose center and two endpoints are joined by lines. The center of the arc is the center of the bounding rectangle specified by x1, y1, x2, and y2. The starting and ending points of the arc are specified by x3, y3, x4, and y4.
The arc is drawn with the selected pen, moving in a counterclockwise direction. Two additional lines are drawn from each endpoint to the arc's center. The pie-shaped area is filled with the current brush. If x3 equals x4 and y3 equals y4, the result is an ellipse with a single line from the center of the ellipse to the point (x3, y3) or (x4, y4).
Parameters
- x1 - x-coordinate of the upper left corner of the bounding rectangle
- y1 - y-coordinate of the upper left corner of the bounding rectangle
- x2 - x-coordinate of the lower right corner of the bounding rectangle
- y2 - y-coordinate of the lower right corner of the bounding rectangle
- x3 - x-coordinate of the arc's starting point. This point does not have to lie exactly on the arc.
- y3 - y-coordinate of the arc's starting point. This point does not have to lie exactly on the arc.
- x4 - x-coordinate of the arc's ending point. This point does not have to lie exactly on the arc.
- y4 - y-coordinate of the arc's ending point. This point does not have to lie exactly on the arc.
NOTE: This is LOW-LEVEL graphic function. To learn more about low-level
graphic functions please read TUTORIAL: Using low-level graphics.
|
| EXAMPLE |
GfxSelectPen( colorRed );
GfxSelectSolidBrush( colorBlue );
GfxPie(100,0,200,100,150,0,200,50);
|
| SEE ALSO |
GfxSelectPen() function , GfxSelectSolidBrush() function |
References:
The GfxPie function is used in the following formulas
in AFL on-line library:
Add your comment:
(please do not ask questions here, if you have a question please send
it to support e-mail address)
|