API referenceGraphics

pdfDrawPie

Draw a pie-slice wedge (center → arc start → arc → back to

CategoryImmediate-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

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleBounding box top-left corner.
Width, HeightDoubleBounding box size.
StartAngle, EndAngleDoubleArc sweep, in degrees.
FillModeIntegerSee the chapter's shared table.

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

See alsopdfDrawChord

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.