Method DrawEllipse
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
DrawEllipse(double, double, double, double, PdfColor?, PdfColor?, double)
Draws an ellipse, filled, outlined or both.
public ContentStreamWriter DrawEllipse(double cx, double cy, double rx, double ry, PdfColor? fill = null, PdfColor? stroke = null, double lineWidth = 1)
Parameters
cxdoublex of the centre, in points.
cydoubley of the centre, in points.
rxdoubleHorizontal radius, in points.
rydoubleVertical radius, 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.