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

◆ draw_arc() [4/4]

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

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

Parameters
penxtd::drawing::pen that determines the color, width, and style of the arc.
xThe x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
yThe y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
widthWidth of the rectangle that defines the ellipse.
heightHeight of the rectangle that defines the ellipse.
start_angleAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweep_angleAngle in degrees measured clockwise from the start_angle parameter to ending point of the arc.
Remarks
This method draws an arc that is a portion of the perimeter of an ellipse. The ellipse is defined by the boundaries of a rectangle. The arc is the portion of the perimeter of the ellipse between the start_angle parameter and the start_angle + sweep_angle parameters.