Method DrawArc
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
DrawArc(PdfRectangle, PdfPoint, PdfPoint)
Draws an arc representing a portion of an ellipse specified by PdfRectangle structure and two radial endpoints.
public void DrawArc(PdfRectangle rect, PdfPoint first, PdfPoint second)
Parameters
rectPdfRectanglePdfRectangle structure that defines the boundaries of the arc.
firstPdfPointThe first radial endpoint.
secondPdfPointThe second radial endpoint.
Remarks
The arc extends in a counter-clockwise direction.
Please use
AppendArc
if you want to append an arc to the current path.
DrawArc(PdfRectangle, PdfPoint, PdfPoint, bool)
Draws an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction.
public void DrawArc(PdfRectangle rect, PdfPoint first, PdfPoint second, bool clockwise)
Parameters
rectPdfRectanglePdfRectangle structure that defines the boundaries of the arc.
firstPdfPointThe first radial endpoint.
secondPdfPointThe second radial endpoint.
clockwiseboolif set to
truethen the arc extends in a clockwise direction; otherwise, the arc extends in a counter-clockwise direction.
Remarks
Please use AppendArc if you want to append an arc to the current path.
DrawArc(PdfPoint, double, double, double, double)
Draws a straight line and an arc representing a portion of an ellipse specified by radius and center.
public void DrawArc(PdfPoint center, double radiusX, double radiusY, double startAngle, double sweepAngle)
Parameters
centerPdfPointThe center of the ellipse.
radiusXdoubleThe radius of the ellipse measured along the x-axis.
radiusYdoubleThe radius of the ellipse measured along the y-axis.
startAngledoubleThe start angle of the arc in degrees.
sweepAngledoubleThe 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
if you want to append an arc to the current path.