API referenceGraphics

pdfDrawArcEx

Elliptical-arc variant of [pdfDrawArc](#api-pdfdrawarc),

CategoryImmediate-paint shapes
Notesame always-strokes behavior as pdfDrawArc

Purpose — Elliptical-arc variant of pdfDrawArc, using a bounding box instead of a radius.

Declarations

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

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleBounding box top-left corner.
Width, HeightDoubleBounding box size.
StartAngle, EndAngleDoubleArc sweep, in degrees.

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

Remarks — Same as pdfDrawArc: always stroked, no FillMode.

See alsopdfDrawArc

C# (P/Invoke)

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

Vector Graphics

Exported names

pdfDrawArcEx

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.