API referenceGraphics

pdfDrawArc

Draw a circular arc and stroke it.

CategoryImmediate-paint shapes
Notealways strokes, no FillMode parameter exists (see Remarks)

Purpose — Draw a circular arc and stroke it.

Declarations

C
BOOL32 __stdcall pdfDrawArc(PPDF IPDF, double PosX, double PosY, double Radius, double StartAngle, double EndAngle);
Delphi
function pdfDrawArc(const IPDF: PPDF; PosX, PosY, Radius, StartAngle, EndAngle: Double): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleArc center.
RadiusDoubleRadius.
StartAngle, EndAngleDoubleArc sweep, in degrees.

Return valueTRUE 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 alsopdfDrawArcEx, pdfDrawChord, pdfDrawPie, pdfDrawNGon (V03 — a regular-polygon primitive with the same immediate-paint pattern)

C# (P/Invoke)

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

Vector Graphics

Exported names

pdfDrawArc

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.