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

cx double

x of the centre, in points.

cy double

y of the centre, in points.

rx double

Horizontal radius, in points.

ry double

Vertical radius, in points.

fill PdfColor?

Fill colour, or null for no fill.

stroke PdfColor?

Outline colour, or null for no outline.

lineWidth double

Outline width, in points.

Returns

ContentStreamWriter

Exceptions

ArgumentException

Neither fill nor stroke is given.

InvalidOperationException

Called inside a text object.