API referenceGraphics

pdfClosePath

Paint the current path per FillMode (per the shared table

CategoryPath 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

ParameterTypeDescription
IPDFPPDFInstance handle.
FillModeTPathFillModeSee the chapter's shared table.

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

See alsopdfStrokePath

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.