API referenceGraphics

pdfDrawCircle

Draw and immediately paint a circle. Equivalent to

CategoryImmediate-paint shapes

Purpose — Draw and immediately paint a circle. Equivalent to pdfEllipse with equal width/height, centered rather than corner-anchored.

Declarations

C
BOOL32 __stdcall pdfDrawCircle(PPDF IPDF, double PosX, double PosY, double Radius, int32_t FillMode);
Delphi
function pdfDrawCircle(const IPDF: PPDF; PosX, PosY, Radius: Double; FillMode: Integer): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleCircle center.
RadiusDoubleRadius.
FillModeIntegerSee the chapter's shared table.

Return valueTRUE on success; FALSE if no content stream is open.

See alsopdfEllipse

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category

Vector Graphics

Exported names

pdfDrawCircle

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.