| Category | Immediate-paint shapes |
|---|
Purpose — Draw a pie-slice wedge (center → arc start → arc → back to center) and paint per FillMode.
Declarations
C
BOOL32 __stdcall pdfDrawPie(PPDF IPDF, double PosX, double PosY, double Width, double Height, double StartAngle, double EndAngle, int32_t FillMode);
Delphi
function pdfDrawPie(const IPDF: PPDF; PosX, PosY, Width, Height, StartAngle, EndAngle: Double; FillMode: Integer): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
PosX, PosY | Double | Bounding box top-left corner. |
Width, Height | Double | Bounding box size. |
StartAngle, EndAngle | Double | Arc sweep, in degrees. |
FillMode | Integer | See the chapter's shared table. |
Return value — TRUE on success; FALSE if no content stream is open.
See also — pdfDrawChord
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category
Vector Graphics
Exported names
pdfDrawPie
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.