|Mac & Win
The function draws a triangle.
|The PDF reference returned from DynaPDF.New.
|X-Coordinate of the first point
|Y-Coordinate of the first point
|X-Coordinate of the second point
|y-Coordinate of the second point
|X-Coordinate of the third point
|Y-Coordinate of the third point
|Fill mode. Can be FillNoClose, StrokeNoClose, FillStrokeNoClose, Fill, Stroke, FillStroke, FillEvOdd, FillStrokeEvOdd, FillEvOddNoClose, FillStrokeEvOddNoClose, NoFill or Close.
Returns OK or error message.
DescriptionThe 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.
Draw blue triangle with black border:
This function checks for a license.
Created 18th August 2014, last changed 3th January 2021