Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawPie Method > DrawPie Method (PdfRectangle, Double, Double, PdfDrawMode)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.

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

Syntax

C#
public void DrawPie(
	PdfRectangle rect,
	double startAngle,
	double sweepAngle,
	PdfDrawMode mode
)
VB
Public Sub DrawPie ( 
	rect As PdfRectangle,
	startAngle As Double,
	sweepAngle As Double,
	mode As PdfDrawMode
)

Parameters

rect
Type: BitMiracle.Docotic.Pdf.PdfRectangle
PdfRectangle structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes.
startAngle
Type: System.Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweepAngle
Type: System.Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.
mode
Type: BitMiracle.Docotic.Pdf.PdfDrawMode
The drawing mode.

Remarks

This method draws a pie shape defined by an arc of an ellipse and the two radial lines that intersect with the endpoints of the arc.

Please use AppendPie() if you want to append a pie shape to the current path.

See Also