XFINIUM.PDF Documentation
DrawDonut(PdfBrush,Double,Double,Double,Double,Double,Double,Double,Double) Method



Xfinium.Pdf.Graphics Namespace > PdfGraphics Class > DrawDonut Method : DrawDonut(PdfBrush,Double,Double,Double,Double,Double,Double,Double,Double) Method
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 donut shape comes.
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.
Rotation angle of the bounding rectangle that defines the donut.
Fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.
Syntax
'Declaration
 
Public Overloads Sub DrawDonut( _
   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 donutHeight As Double, _
   ByVal rotation As Double _
) 
'Usage
 
Dim instance As PdfGraphics
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 donutHeight As Double
Dim rotation As Double
 
instance.DrawDonut(brush, x, y, width, height, startAngle, sweepAngle, donutHeight, rotation)

Parameters

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 donut shape comes.
y
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.
width
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.
height
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.
startAngle
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.
sweepAngle
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.
donutHeight
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.
rotation
Rotation angle of the bounding rectangle that defines the donut.
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