API referenceGraphics

pdfDrawChord

Draw an elliptical arc closed by a straight chord (the arc's

CategoryImmediate-paint shapes

Purpose — Draw an elliptical arc closed by a straight chord (the arc's two endpoints connected directly), and paint per FillMode.

Declarations

C
BOOL32 __stdcall pdfDrawChord(PPDF IPDF, double PosX, double PosY, double Width, double Height, double StartAngle, double EndAngle, int32_t FillMode);
Delphi
function pdfDrawChord(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 — for a chord, "close" (values 3-5) closes the straight chord line, since the arc path itself doesn't return to its start.

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

See alsopdfDrawPie

C# (P/Invoke)

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

Vector Graphics

Exported names

pdfDrawChord

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.