| Category | Immediate-paint shapes |
|---|
Purpose — Draw and immediately paint a triangle from three explicit vertices.
Declarations
C
BOOL32 __stdcall pdfTriangle(PPDF IPDF, double x1, double y1, double x2, double y2, double x3, double y3, int32_t FillMode);
Delphi
function pdfTriangle(const IPDF: PPDF; x1, y1, x2, y2, x3, y3: Double; FillMode: Integer): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
x1, y1 / x2, y2 / x3, y3 | Double | The three vertices. |
FillMode | Integer | See the chapter's shared table. |
Return value — TRUE on success; FALSE if no content stream is open.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category
Core
Exported names
pdfTriangle
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.