| Category | Immediate-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
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
PosX, PosY | Double | Bounding box lower-left corner. |
Width, Height | Double | Bounding box size (the ellipse's horizontal/vertical radii are half of these). |
FillMode | Integer | See the chapter's shared table. |
Return value — TRUE on success; FALSE if no content stream is open.
See also — pdfDrawCircle
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.