MobileForms Toolkit Documentation

GraphicsEx.FillPie Method (Graphics, Brush, Single, Single, Single, Single, Single, Single, Boolean)

Fills the interior or exterior of a pie section defined by an ellipse specified by a pair of coordinates, a width, a height, and two radial lines.

public static void FillPie(
Graphics gr,
Brush brush,
float x,
float y,
float width,
float height,
float startAngle,
float sweepAngle,
bool inverted
);

Parameters

gr
Graphics to use.
brush
Brush that determines the characteristics of the fill.
x
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes
y
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
width
Width of the bounding rectangle that defines the ellipse from which the pie section comes.
height
Height of the bounding rectangle that defines the ellipse from which the pie section comes.
startAngle
Angle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweepAngle
Angle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.
inverted
false to fill interior, otherwise true.

Remarks

This method fills the interior or exterior of a pie section defined by an arc of an ellipse and the two radial lines that intersect with the endpoints of the arc. The ellipse is defined by the bounding rectangle. The pie section consists of the two radial lines defined by the startAngle and sweepAngle parameters and the arc between the intersections of those radial lines with the ellipse.

See Also

GraphicsEx Class | Resco.Drawing Namespace | GraphicsEx.FillPie Overload List