Method AppendArc
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
AppendArc(PdfRectangle, PdfPoint, PdfPoint)
Appends an arc representing a portion of an ellipse specified by PdfRectangle structure and two radial endpoints to the current path.
public void AppendArc(PdfRectangle rect, PdfPoint first, PdfPoint second)
Parameters
rect
PdfRectanglePdfRectangle structure that defines the boundaries of the arc.
first
PdfPointThe first radial endpoint.
second
PdfPointThe second radial endpoint.
Remarks
The arc extends in a counter-clockwise direction.
Note that the call to this method does not place any marks on the
canvas; only the painting operators (StrokePath(),
CloseAndStrokePath(), FillPath,
FillAndStrokePath) do that.
Please use
DrawArc
if you want to draw an arc immediately.
AppendArc(PdfRectangle, PdfPoint, PdfPoint, bool)
Appends an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction to the current path.
public void AppendArc(PdfRectangle rect, PdfPoint first, PdfPoint second, bool clockwise)
Parameters
rect
PdfRectanglePdfRectangle structure that defines the boundaries of the arc.
first
PdfPointThe first radial endpoint.
second
PdfPointThe second radial endpoint.
clockwise
boolif set to
true
then the arc extends in a clockwise direction; otherwise, the arc extends in a counter-clockwise direction.
Remarks
Note that the call to this method does not place any marks on the
canvas; only the painting operators (StrokePath(),
CloseAndStrokePath(), FillPath,
FillAndStrokePath) do that.
Please use
DrawArc
if you want to draw an arc immediately.
AppendArc(PdfPoint, double, double, double, double)
Appends a straight line segment and an arc representing a portion of an ellipse specified by radius and center to the current path.
public void AppendArc(PdfPoint center, double radiusX, double radiusY, double startAngle, double sweepAngle)
Parameters
center
PdfPointThe center of the ellipse.
radiusX
doubleThe radius of the ellipse measured along the x-axis.
radiusY
doubleThe radius of the ellipse measured along the y-axis.
startAngle
doubleThe start angle of the arc in degrees.
sweepAngle
doubleThe 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.
Note that the call to this method does not place any marks on the
canvas; only the painting operators (StrokePath(),
CloseAndStrokePath(), FillPath,
FillAndStrokePath) do that.
Please use
DrawArc
if you want to draw an arc immediately.