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

◆ add_pie() [2/4]

void xtd::drawing::drawing_2d::graphics_path::add_pie ( const xtd::drawing::rectangle_f rect,
float  start_angle,
float  sweep_angle 
)

Adds the outline of a pie shape to this path.

Parameters
rectA xtd::drawing::rectangle_f that represents the bounding rectangle that defines the ellipse from which the pie is drawn.
start_angleThe starting angle for the pie section, measured in degrees clockwise from the x-axis.
sweep_angleThe angle between start_angle and the end of the pie section, measured in degrees clockwise from start_angle.
Remarks
The pie shape is defined by a partial outline of an ellipse and the two radial lines that intersect the endpoints of the partial outline. The partial outline begins at start_angle (measured clockwise from the x-axis) and ends at start_angle + sweep_angle.