Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


The function draws a triangle.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.2 Yes Yes Yes Yes Yes
MBS( "DynaPDF.Triangle"; PDF; x1; y1; x2; y2; x3; y3; FillMode )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
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.


The function draws a triangle.
The draw direction can be changed with the function DynaPDF.SetDrawDirection.
A triangle is a closed path that can be filled, stroked or both. It is also possible to draw a triangle invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are described under ClipPath(). The parameter FillMode is ignored if the triangle is drawn inside a clipping path. The fill modes are described under ClosePath().

See also Triangle function in DynaPDF manual.

See also

Created 18th August 2014, last changed 18th August 2014

DynaPDF.TranslateCoords   -   DynaPDF.UnLockLayer

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins