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.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Creates radial sharing.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
sX | X-Coordinate of the inner circle | ||
sY | Y-Coordinate of the inner circle | ||
R1 | Radius of the inner circle | ||
eX | X-Coordinate of the outer circle | ||
eY | Y-Coordinate of the outer circle | ||
R2 | Radius of the outer circle | ||
SCenter | Shading center | ||
SColor | Start color | MBS("DynaPDF.RGB"; 120; 120; 220) | |
EColor | End color | MBS("DynaPDF.RGB"; 255; 255; 255) /* white */ | |
Extend1 | Extend the shading beyond the start point. Pass 1 to extend or 0 if not. Default is 0. |
0 | Optional |
Extend2 | Extend the shading beyond the end point. Pass 1 to extend or 0 if not. Default is 0. |
0 | Optional |
Returns number or error.
See also CreateRadialShading function in DynaPDF manual.
Create a radial shading:
Set Variable [ $r ; Value: MBS( "DynaPDF.SaveGraphicState"; $PDF) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.Rectangle"; $PDF; 100; 100; 200; 100; "NoFill") ]
Set Variable [ $r ; Value: MBS( "DynaPDF.ClipPath"; $PDF; "Winding"; "NoFill") ]
Set Variable [ $sh ; Value: MBS( "DynaPDF.CreateRadialShading"; /* Creates radial sharing. */
$PDF; /* The PDF reference returned from DynaPDF.New. */
165; /* X-Coordinate of the inner circle */
170; /* Y-Coordinate of the inner circle */
5; /* Radius of the inner circle */
150; /* X-Coordinate of the outer circle */
185; /* Y-Coordinate of the outer circle */
100; /* Radius of the outer circle */
,7; /* Shading center */
MBS("DynaPDF.RGB"; 255; 255; 255) /* white */; /* Start colore.g. MBS("DynaPDF.RGB"; 120; 120; 220) */
MBS("DynaPDF.RGB"; 120; 120; 220); /* End colore.g. MBS("DynaPDF.RGB"; 255; 255; 255) /* white */ */
1; /* Optional; Extend the shading beyond the start point.
Pass 1 to extend or 0 if not. Default is 0.e.g. 0 */
1) /* Optional; Extend the shading beyond the end point.
Pass 1 to extend or 0 if not. Default is 0.e.g. 0 */ ]
Set Variable [ $r ; Value: MBS( "DynaPDF.ApplyShading"; $PDF; $sh) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.RestoreGraphicState"; $PDF) ]
Created 20th April 2020, last changed 15th January 2021
DynaPDF.CreateNamedDest - DynaPDF.CreateRadioButton
Feedback: Report problem or ask question.