Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawArc Method > DrawArc Method (PdfRectangle, PdfPoint, PdfPoint, Boolean)
Draws an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction.

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

Syntax

C#
public void DrawArc(
	PdfRectangle rect,
	PdfPoint first,
	PdfPoint second,
	bool clockwise
)
VB
Public Sub DrawArc ( 
	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

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

See Also