SVG_New_ellipse

4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next

version 11.3


SVG_New_ellipse (parentSVGObject; x; y; xRadius; yRadius{; foregroundColor{; backgroundColor{; strokeWidth}}}) SVG_Ref

ParameterTypeDescription
parentSVGObjectSVG_RefReference of parent element
xNumberCoordinate on center X axis of ellipse
yNumberCoordinate on center Y axis of ellipse
xRadiusNumberRadius on X axis
yRadiusNumberRadius on Y axis
foregroundColorStringColor or gradient name
backgroundColorStringColor or gradient name
strokeWidthLongintLine thickness
Function resultSVG_RefReference of ellipse

Description

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.

Examples

1. Draw an ellipse (default fill and border color, default line thickness):

   svgRef:= SVG_New
   objectRef:=SVG_New_ellipse (svgRef;100;50;90;40)

2. 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)

See Also

SVG_New_circle, SVG_New_ellipse_bounded.


4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next