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

◆ fill_pie() [2/4]

void xtd::drawing::graphics::fill_pie ( const xtd::drawing::brush brush,
const xtd::drawing::rectangle_f rect,
float  start_angle,
float  sweep_angle 
)

Fills the interior of a pie section defined by an ellipse specified by a xtd::drawing::rectangle_f structure and two radial lines.

Parameters
brushxtd::drawing::brush that determines the characteristics of the fill.
rectxtd::drawing::rectangle_f structure that represents 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.