Declaration (see MWindow.h):
void fillArc(const MPoint& center, const MSize& rad, double startAngle = 0, double endAngle = 360);
Fills a closed elliptical shape or an elliptical pie-slice.
The center point of the ellipse.
The horizontal (rad.w) and vertical (rad.h) radii of the ellipse in pixels.
Details: If rad.h is equal to Same, the arc will be circular (i.e. rad.h is the same as rad.w). Except for this specific case, rad must be valid, or nothing will be drawn. Also, nothing is drawn if rad.w or rad.h is non-positive.
Starting angle (in degrees).
Details: Angle 0 is the positive x-axis, increasing counter-clockwise.
Ending angle (in degrees).
Details: Angle 0 is the positive x-axis, increasing counter-clockwise. endAngle must be greater than startAngle, or nothing will be drawn.
The filled shape is bound by the specified arc and by two lines from the arc's edges to the arc's center point. The arc and the lines themselves are not drawn, however (so setDrawSettings parameters are ignored). The arc coordinates are determined in exactly the same way as in drawArc, In particular, if endAngle is less than or equal to startAngle, then the function has no effect.
The filling parameters are determined by the preceding setFillSettings.
- To paint an outline of an arc use drawArc
- See Painting functions for details about the coordinate system
Let us know
Please Contact us to report any errors on this page, or to suggest any improvements.