4D v14SVG_SET_STROKE_WIDTH |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14
SVG_SET_STROKE_WIDTH
|
SVG_SET_STROKE_WIDTH ( svgObject ; strokeWidth {; unit} ) | ||||||||
Parameter | Type | Description | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
strokeWidth | Real |
![]() |
Line thickness | |||||
unit | String |
![]() |
Unit of measurement | |||||
The SVG_SET_STROKE_WIDTH command can be used to set the thickness of lines for the SVG object having the svgObject reference. If this attribute already exists, its value is replaced by the value passed in the parameter.
Pass the value of the line thickness in strokeWidth. The optional unit parameter can be used to specify the unit to be used. You can pass one of the following values: px, pt, pc, cm, mm, in, em, ex or %. If the unit parameter is omitted, thestrokeWidth parameter is expected in the user coordinate system
$svg :=SVG_New
SVG_SET_STROKE_WIDTH(SVG_New_rect($svg;10;10;200;200;0;0;"black";"white";2);10)
Product: 4D
Theme: Attributes
Number:
65938
Modified: Composant 4D SVG v11.4
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)