API referenceGraphics

pdfEllipse

Draw and immediately paint an ellipse inscribed in the given

CategoryImmediate-paint shapes

Purpose — Draw and immediately paint an ellipse inscribed in the given bounding box.

Declarations

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

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleBounding box lower-left corner.
Width, HeightDoubleBounding box size (the ellipse's horizontal/vertical radii are half of these).
FillModeIntegerSee the chapter's shared table.

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

See alsopdfDrawCircle

C# (P/Invoke)

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

Core

Exported names

pdfEllipse

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.