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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
The function draws a rectangle with elliptical corners.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
PosX | X-Coordinate of rectangle | $x |
PosY | Y-Coordinate of rectangle | $y |
Width | Width of the rectangle | $w |
Height | Height of the rectangle | $h |
RadiusWidth | The radius for width. | 20 |
RadiusHeight | The radius for height. | 30 |
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 RoundRectEx function in DynaPDF manual.
Draw blue round rectangle width different x/y radii:
Set Variable [ $r ; Value: MBS("DynaPDF.SetStrokeColor"; $pdf; 0; 0; 0) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 0; 0; ,8) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetLineWidth"; $pdf; 5) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.RoundRectEx"; $pdf; 100; 100; 300; 200; 30; 20; "fillStroke" ) ]
Created 18th August 2014, last changed 3th January 2021
DynaPDF.RoundRect - DynaPDF.Save
Feedback: Report problem or ask question.