Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawArc Method > DrawArc Method (PdfPoint, Double, Double, Double, Double)
Draws a straight line and an arc representing a portion of an ellipse specified by radius and center.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void DrawArc(
	PdfPoint center,
	double radiusX,
	double radiusY,
	double startAngle,
	double sweepAngle
)
VB
Public Sub DrawArc ( 
	center As PdfPoint,
	radiusX As Double,
	radiusY As Double,
	startAngle As Double,
	sweepAngle As Double
)

Parameters

center
Type: BitMiracle.Docotic.Pdf.PdfPoint
The center of the ellipse.
radiusX
Type: System.Double
The radius of the ellipse measured along the x-axis.
radiusY
Type: System.Double
The radius of the ellipse measured along the y-axis.
startAngle
Type: System.Double
The start angle of the arc in degrees.
sweepAngle
Type: System.Double
The sweep angle of the arc in degrees.

Remarks

The line segment is added from the CurrentPosition to the beginning of the arc. The arc extends along the perimeter of an ellipse with the given radius and center. The length of the arc is defined by the given start and sweep angles.

Please use AppendArc Overload if you want to append an arc to the current path.

See Also