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

◆ add_pie() [4/4]

void xtd::drawing::drawing_2d::graphics_path::add_pie ( float  x,
float  y,
float  width,
float  height,
float  start_angle,
float  sweep_angle 
)

Adds the outline of a pie shape to this path.

Parameters
xThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn.
yThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn.
widthThe width of the bounding rectangle that defines the ellipse from which the pie is drawn.
heightThe height of 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.