xtd 0.2.0
Loading...
Searching...
No Matches

◆ fill_pie() [4/4]

void xtd::drawing::graphics::fill_pie ( const xtd::drawing::brush brush,
float  x,
float  y,
float  width,
float  height,
float  start_angle,
float  sweep_angle 
)

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

Parameters
brushxtd::drawing::brush that determines the characteristics of the fill.
xThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
yThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
widthWidth of the bounding rectangle that defines the ellipse from which the pie section comes.
heightHeight of the bounding rectangle that defines the ellipse from which the pie section comes.
start_angleAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweep_angleAngle in degrees measured clockwise from the start_angle parameter to the second side of the pie section.
Remarks
This method fills the interior 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 start_angle and sweep_angle parameters, and the arc between the intersections of those radial lines with the ellipse.
If the sweep_angle parameter is greater than 360 degrees or less than -360 degrees, it is treated as if it were 360 degrees or -360 degrees, respectively.