| Category | Path construction / painting |
|---|
Purpose — Paint the current path per FillMode (per the shared table above) — despite the name, this is the general paint call for a manually-built path (moveto/lineto/Bézier sequence), not merely a "close" operation.
Declarations
C
BOOL32 __stdcall pdfClosePath(PPDF IPDF, TPathFillMode FillMode);
Delphi
function pdfClosePath(const IPDF: PPDF; FillMode: TPathFillMode): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
FillMode | TPathFillMode | See the chapter's shared table. |
Return value — TRUE on success; FALSE if no content stream is open.
See also — pdfStrokePath
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category
Core
Exported names
pdfClosePath
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.