Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R8
SVG_New_ellipse
|
SVG_New_ellipse ( parentSVGObject ; x ; y ; xRadius ; yRadius {; foregroundColor {; backgroundColor {; strokeWidth}}} ) -> Funktionsergebnis | ||||||||
Parameter | Typ | Beschreibung | ||||||
parentSVGObject | SVG_Ref |
![]() |
Reference of parent element | |||||
x | Lange Ganzzahl |
![]() |
Coordinate on center X axis of ellipse | |||||
y | Lange Ganzzahl |
![]() |
Coordinate on center Y axis of ellipse | |||||
xRadius | Lange Ganzzahl |
![]() |
Radius on X axis | |||||
yRadius | Lange Ganzzahl |
![]() |
Radius on Y axis | |||||
foregroundColor | String |
![]() |
Color or gradient name | |||||
backgroundColor | String |
![]() |
Color or gradient name | |||||
strokeWidth | Zahl |
![]() |
Line thickness | |||||
Funktionsergebnis | SVG_Ref |
![]() |
Reference of ellipse | |||||
The SVG_New_ellipse command creates a new ellipse in the SVG container designated by parentSVGObject. If parentSVGObject is not an SVG document, an error is generated.
The ellipse is positioned and sized according to the values of x, y, width and height.
The optional foregroundColor and backgroundColor parameters contain, respectively, the name of the line color and of the background color. (For more information about colors, please refer to the commands of the Colors and Gradients theme).
The optional strokeWidth parameter contains the size of the pen expressed in pixels. Its default value is 1.
Draw an ellipse (default fill and border color, default line thickness):
svgRef:=SVG_New
objectRef:=SVG_New_ellipse(svgRef;100;50;90;40)
Draw a light blue ellipse with a blue edge and a 2-point line thickness:
svgRef:=SVG_New
objectRef:=SVG_New_ellipse(svgRef;100;50;90;40;"blue";"lightblue";2)
Produkt: 4D
Thema: Drawing
Nummer:
65977
Geändert: Composant 4D SVG v11.4
4D SVG ( 4D v20 R8)