Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Draws a n-gon.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 10.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
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" |
Returns OK or error.
See also DrawNGon function in DynaPDF manual.
Draw various n-edge objects on top of each other in various shades of gray:
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; 0; 0; 0) ]
Set Variable [ $r ; Value: MBS("DynaPDF.DrawNGon"; $pdf; 200; 600; 100; 1; 9; "Stroke") ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; ,1; ,1; ,1) ]
Set Variable [ $r ; Value: MBS("DynaPDF.DrawNGon"; $pdf; 200; 600; 100; 1; 8; "Stroke") ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; ,2; ,2; ,2) ]
Set Variable [ $r ; Value: MBS("DynaPDF.DrawNGon"; $pdf; 200; 600; 100; 1; 7; "Stroke") ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; ,3; ,3; ,3) ]
Set Variable [ $r ; Value: MBS("DynaPDF.DrawNGon"; $pdf; 200; 600; 100; 1; 6; "Stroke") ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; ,4; ,4; ,4) ]
Set Variable [ $r ; Value: MBS("DynaPDF.DrawNGon"; $pdf; 200; 600; 100; 1; 5; "Stroke") ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; ,5; ,5; ,5) ]
Set Variable [ $r ; Value: MBS("DynaPDF.DrawNGon"; $pdf; 200; 600; 100; 1; 4; "Stroke") ]
This function checks for a license.
Created 18th September 2020, last changed 23th November 2020