4D v16

SVG_SET_STROKE_WIDTH

Home

 
4D v16
SVG_SET_STROKE_WIDTH

SVG_SET_STROKE_WIDTH 


 

SVG_SET_STROKE_WIDTH ( svgObject ; strokeWidth {; unit} ) 
Parameter Typ   Beschreibung
svgObject  SVG_Ref in Reference of SVG element
strokeWidth  Zahl in Line thickness
unit  String in 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)



Siehe auch 

SVG_SET_STROKE_BRUSH

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Attributes
Nummer: 65938

 
GESCHICHTE 

Geändert: Composant 4D SVG v11.4

 
ARTIKELVERWENDUNG

4D SVG ( 4D v16)