Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com

Home

 
4D v19
SVG_New_polyline

SVG_New_polyline 


 

SVG_New_polyline ( parentSVGObject {; points {; foregroundColor {; backgroundColor {; strokeWidth}}}} ) -> Funktionsergebnis 
Parameter Typ   Beschreibung
parentSVGObject  SVG_Ref in Reference of parent element
points  String in Path
foregroundColor  String in Color or gradient name
backgroundColor  String in Color or gradient name
strokeWidth  Zahl in Line thickness
Funktionsergebnis  SVG_Ref in Reference of line

The SVG_New_polyline command creates a new open broken line in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not a valid reference, an error is generated.

The optional points parameter can be used to pass the path points of the line as expected by the SVG standard. If this parameter is omitted or empty, the points may be set with the SVG_ADD_POINT command.

The optional foregroundColor and backgroundColor parameters contain, respectively, the name of the line color and of the background color. (For more information about colors, please refer to the commands of the Colors and Gradients theme).

The optional strokeWidth parameter contains the size of the pen expressed in pixels. Its default value is 1.

Draw two triangles:

 $polyline:=SVG_New_polyline($svg;"10,10 200,100 10,100 10,10";"blue";"blue:50")
 $polyline:=SVG_New_polyline($svg;"";"red";"red:50")
 SVG_ADD_POINT($polyline;205;15)
 SVG_ADD_POINT($polyline;15;105)
 SVG_ADD_POINT($polyline;205;105)
 SVG_ADD_POINT($polyline;205;15)



Siehe auch 

SVG_New_polyline_by_arrays

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Drawing
Nummer: 65973

Dieser Befehl kann in preemptive Prozessen laufen

 
SEITENINHALT 
 
GESCHICHTE 

Geändert: Composant 4D SVG v11.4

 
ARTIKELVERWENDUNG

4D SVG ( 4D v19)