Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
The function draws a triangle.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
x1 | X-Coordinate of the first point | |
y1 | Y-Coordinate of the first point | |
x2 | X-Coordinate of the second point | |
y2 | y-Coordinate of the second point | |
x3 | X-Coordinate of the third point | |
y3 | Y-Coordinate of the third point | |
FillMode | Fill mode. Can be FillNoClose, StrokeNoClose, FillStrokeNoClose, Fill, Stroke, FillStroke, FillEvOdd, FillStrokeEvOdd, FillEvOddNoClose, FillStrokeEvOddNoClose, NoFill or Close. | "fill" |
Returns OK or error message.
See also Triangle function in DynaPDF manual.
Draw blue triangle with black border:
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; 0; 0; 0) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 0; 0; 0.8) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.Triangle"; $pdf; 100; 100; 100; 250; 250; 200; "fillStroke" ) ]
This function checks for a license.
Created 18th August 2014, last changed 3th January 2021