4D v14

SVG_SET_ROUNDING_RECT

Home

 
4D v14
SVG_SET_ROUNDING_RECT

SVG_SET_ROUNDING_RECT 


 

SVG_SET_ROUNDING_RECT ( svgObject ; roundedX {; roundedY} ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
roundedX  Longint in Radius on X axis
roundedY  Longint in Radius on Y axis

The SVG_SET_ROUNDING_RECT command can be used to set the radii of the ellipse used to round the corners of a rectangle having the svgObject reference. If these attributes already exist, their values are replaced by those passed as parameters. If svgObject is not the reference of a rectangle, an error is generated.

The values are expected in the user coordinate system.

Example  

 $svg :=SVG_New ` Create a new document
 $object:=SVG_New_rect($svg ;10;10;200;100)
 SVG_SET_ROUNDING_RECT($object;20) `Round the corners

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65935

 
HISTORY 

Created: Composant 4D SVG v11.3

 
SEE ALSO 

SVG_New_rect
SVG_SET_STROKE_LINEJOIN

 
ARTICLE USAGE

4D SVG Component ( 4D v13)
4D SVG Component ( 4D v12)
4D SVG Component ( Composant 4D SVG v11.4)
4D SVG Component ( 4D v14 R2)
4D SVG Component ( 4D v14)
4D SVG Component ( 4D v14 R3)
4D SVG Component ( 4D v14 R4)