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

cx double

x of the centre, in points.

cy double

y of the centre, in points.

radius double

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.