4D v16SVG_New_rect |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
SVG_New_rect
SVG_New_rect
The SVG_New_rect command creates a new rectangle in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated. The rectangle is positioned and sized according to the values of x, y, width and height. The optional roundedX and roundedY parameters can be used to round off the angles according to the indicated values. If the roundedY parameter is omitted (or is -1), the curve will be regular. Pass -1 in these parameters if you want them to be ignored by the command. 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 a rectangle (default fill and border color, default line thickness): svgRef:=SVG_New Draw a blue rectangle with a 3-pixel red border:
Draw a square with rounded edges (default fill and border color, default line thickness): svgRef:=SVG_New Draw a light blue rectangle with rounded ends and a blue edge (default line thickness): svgRef:=SVG_New
See also
|
PROPERTIES
Product: 4D
HISTORY
Modified: Composant 4D SVG v11.4 ARTICLE USAGE
4D SVG Component ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||