Method DrawCircle
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
DrawCircle(double, double, double, PdfColor?, PdfColor?, double)
Draws a circle, filled, outlined or both.
public ContentStreamWriter DrawCircle(double cx, double cy, double radius, PdfColor? fill = null, PdfColor? stroke = null, double lineWidth = 1)
Parameters
cxdoublex of the centre, in points.
cydoubley of the centre, in points.
radiusdoubleRadius, in points.
fillPdfColor?Fill colour, or null for no fill.
strokePdfColor?Outline colour, or null for no outline.
lineWidthdoubleOutline width, in points.
Returns
Exceptions
- ArgumentException
Neither
fillnorstrokeis given.- InvalidOperationException
Called inside a text object.