PdfCanvas.AppendArc Method (PdfRectangle, PdfPoint, PdfPoint, Boolean)

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > AppendArc Method > AppendArc Method (PdfRectangle, PdfPoint, PdfPoint, Boolean)
Appends an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction to the current path.

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

Syntax

C#
public void AppendArc(
	PdfRectangle rect,
	PdfPoint first,
	PdfPoint second,
	bool clockwise
)
VB
Public Sub AppendArc ( 
	rect As PdfRectangle,
	first As PdfPoint,
	second As PdfPoint,
	clockwise As Boolean
)

Parameters

rect
Type: BitMiracle.Docotic.Pdf.PdfRectangle
PdfRectangle structure that defines the boundaries of the arc.
first
Type: BitMiracle.Docotic.Pdf.PdfPoint
The first radial endpoint.
second
Type: BitMiracle.Docotic.Pdf.PdfPoint
The second radial endpoint.
clockwise
Type: System.Boolean
if 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(PdfFillMode), FillAndStrokePath(PdfFillMode)) do that.

Please use DrawArc() if you want to draw an arc immediately.

See Also