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: 9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5    Statistic    FMM    Blog  

DynaPDF.DrawNGon

Draws a n-gon.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 10.5 Yes Yes Yes Yes Yes
MBS( "DynaPDF.DrawNGon"; PDF; PosX; PosY; Radius; Alpha; NumSides; FillMode )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
PosX X-Coordinate of the midpoint of the ngon.
PosY Y-Coordinate of the midpoint of the ngon.
Radius The radius.
Alpha Rotation angle in degrees.
NumSides Number of sides. Must be greater 2. 7
FillMode Fill mode. Can be FillNoClose, StrokeNoClose, FillStrokeNoClose, Fill, Stroke, FillStroke, FillEvOdd, FillStrokeEvOdd, FillEvOddNoClose, FillStrokeEvOddNoClose, NoFill or Close. "fill"

Result

Returns OK or error.

Description

Draws a n-gon.
A n-gon is a polygon with "n" number of sides. The minimum number of sides is three.
A n-gon is a closed path that can be filled, stroked or both. It is also possible to draw a n-gon invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are described at DynaPDF.ClipPath. The parameter FillMode is ignored if the circle is drawn inside a clipping path. The fill modes are described at DynaPDF.ClosePath.

If the function succeeds the return value is OK, otherwise an error.

See also

Blog Entries

Release notes

  • Version 10.5
    • Added DynaPDF.DrawNGon, DynaPDF.GetDefaultBarcodeParameters and DynaPDF.InsertBarcode functions.

Created 18th September 2020, last changed 18th September 2020


DynaPDF.DrawCircle   -   DynaPDF.DrawPie

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins