| Category | Immediate-paint shapes |
|---|---|
| Note | always strokes, no FillMode parameter exists (see Remarks) |
Purpose — Draw a circular arc and stroke it.
Declarations
BOOL32 __stdcall pdfDrawArc(PPDF IPDF, double PosX, double PosY, double Radius, double StartAngle, double EndAngle);
function pdfDrawArc(const IPDF: PPDF; PosX, PosY, Radius, StartAngle, EndAngle: Double): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
PosX, PosY | Double | Arc center. |
Radius | Double | Radius. |
StartAngle, EndAngle | Double | Arc sweep, in degrees. |
Return value — TRUE on success; FALSE if no content stream is open.
Remarks — verified: no fill option exists for this call. Unlike every other shape in this chapter, pdfDrawArc has no FillMode parameter at all — it unconditionally emits a plain S (stroke) after the arc path, equivalent to always passing fmStrokeNoClose (value 1). There is no way to fill an arc sector or leave it unpainted through this call; for a filled wedge, see pdfDrawPie (pie slice) or pdfDrawChord (straight chord closure), both of which do take FillMode.
See also — pdfDrawArcEx, pdfDrawChord, pdfDrawPie, pdfDrawNGon (V03 — a regular-polygon primitive with the same immediate-paint pattern)
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Vector Graphics
pdfDrawArc
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.