ImageEn, unit iexSVG

IEParseSVGLineTag


Declaration

function IEParseSVGLineTag(const TagContent: string; out X1, Y1, X2, Y2: Double; var StrokeWidth: Double; var StrokeColor: TColor;
                           var Opacity: Double; StyleDefinitions: TStringList = nil; InitializeStyles: Boolean = True): Boolean; overload;
function IEParseSVGLineTag(const Tag: TIESVGTag; ScaleX, ScaleY: Double; out X1, Y1, X2, Y2: Double; var StrokeWidth: Double; var StrokeColor: TColor;
                           var Opacity: Double; StyleDefinitions: TStringList = nil; InitializeStyles: Boolean = True; ProcessTransforms: Boolean = True): Boolean; overload;


Description

Parse an SVG line tag and output the found points and style properties.
If InitializeStyles is true, any styles not specified will be reset to SVG defaults.
If ProcessTransforms is true, any transforms attributes found in the tag will be used to move, scale or rotae the line.
Result is false if the tag could not be parsed.


Demo

Demo  Demos\InputOutput\SVGParsing\SVGParsing.dpr


Examples

IEParseSVGLineTag( '<line x1="650" y1="650" x2="500" y2="550" style="stroke:red;stroke-width:2" />, x1, y1, x2, y2, strokeWidth, strokeColor, opacity );


See Also

ParseSVG
IEParseSVGImageTag
IEParseSVGPathTag
IEParseSVGPolyTag
IEParseSVGShapeTag
IEParseSVGTextTag