| Category | Immediate-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
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
PosX, PosY | Double | Bounding box top-left corner. |
Width, Height | Double | Bounding box size. |
StartAngle, EndAngle | Double | Arc sweep, in degrees. |
FillMode | Integer | See 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 value — TRUE on success; FALSE if no content stream is open.
See also — pdfDrawPie
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.