XFINIUM.PDF Documentation
DrawPie(PdfPen,PdfBrush,Double,Double,Double,Double,Double,Double,Double) Method



Xfinium.Pdf.Graphics Namespace > PdfGraphics Class > DrawPie Method : DrawPie(PdfPen,PdfBrush,Double,Double,Double,Double,Double,Double,Double) Method
PdfPen that determines the color, width, and style of the pie shape.
PdfBrush that determines the characteristics of the fill.
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.
Rotation angle of the bounding rectangle that defines the pie.
Draws and fills the interior of a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Syntax
'Declaration
 
Public Overloads Sub DrawPie( _
   ByVal pen As PdfPen, _
   ByVal brush As PdfBrush, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal width As Double, _
   ByVal height As Double, _
   ByVal startAngle As Double, _
   ByVal sweepAngle As Double, _
   ByVal rotation As Double _
) 
'Usage
 
Dim instance As PdfGraphics
Dim pen As PdfPen
Dim brush As PdfBrush
Dim x As Double
Dim y As Double
Dim width As Double
Dim height As Double
Dim startAngle As Double
Dim sweepAngle As Double
Dim rotation As Double
 
instance.DrawPie(pen, brush, x, y, width, height, startAngle, sweepAngle, rotation)

Parameters

pen
PdfPen that determines the color, width, and style of the pie shape.
brush
PdfBrush that determines the characteristics of the fill.
x
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
y
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
width
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.
height
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.
startAngle
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweepAngle
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.
rotation
Rotation angle of the bounding rectangle that defines the pie.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfGraphics Class
PdfGraphics Members
Overload List