public Path AddArc(
float x,
float y,
float width,
float height,
float startAngle,
float sweepAngle
)Public Function AddArc (
x As Single,
y As Single,
width As Single,
height As Single,
startAngle As Single,
sweepAngle As Single
) As Pathpublic:
Path^ AddArc(
float x,
float y,
float width,
float height,
float startAngle,
float sweepAngle
)member AddArc :
x : float32 *
y : float32 *
width : float32 *
height : float32 *
startAngle : float32 *
sweepAngle : float32 -> Path If the current figure is not empty or closed, the first point of the added arc will be connected to the last point of the figure.
When the absolute value of sweepAngle is greater than or equal to 360, a complete ellipse is added to the path, and the start/end points of the arc will be identical, as if sweepAngle was exactly 360. This matters when the ellipse is connected with other path segments.
The coordinates of the specified bounding rectangle are not validated here, but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.