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 Type   Description
svgObject  SVG_Ref in Reference of SVG element
strokeWidth  Real 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

Example  

 $svg :=SVG_New
 SVG_SET_STROKE_WIDTH(SVG_New_rect($svg;10;10;200;200;0;0;"black";"white";2);10)



See also 

SVG_SET_STROKE_BRUSH

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65938

 
HISTORY 

Modified: Composant 4D SVG v11.4

 
ARTICLE USAGE

4D SVG Component ( 4D v16)