4D v14

SVG_SET_STROKE_BRUSH

Home

 
4D v14
SVG_SET_STROKE_BRUSH

SVG_SET_STROKE_BRUSH 


 

SVG_SET_STROKE_BRUSH ( svgObject ; color ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
color  String in Color expression

The SVG_SET_STROKE_BRUSH command can be used to set the color used for the lines of the SVG object having the svgObject reference. If this attribute already exists, its value is replaced by the value passed in the parameter.

For more information about colors, please refer to the “SVG Colors” section.

Example  

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

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65939

 
HISTORY 

Created: Composant 4D SVG v11.3

 
SEE ALSO 

SVG Colors
SVG_GET_DEFAULT_BRUSHES
SVG_SET_FILL_BRUSH

 
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)