Hide Comments
Hide Comments

ParseDashArray(String,String,TSVGPen,TSVGStyleProperties,TSVGUnitFactors) Method

Comments (0)

Parses the input string for a dash array value and sets the Pen properties

Namespace: FMX.RS.SVGUtils

expandingSyntax

Delphi

 procedure ParseDashArray(ArrayStr, OffsetStr: String; const Pen: TSVGPen;
  var Inherits: TSVGStyleProperties; UnitFactors: TSVGUnitFactors );
 

Parameters

ArrayStr

Type: String

OffsetStr

Type: String

Pen

Type: TSVGPen

Inherits

Type: TSVGStyleProperties

UnitFactors

Type: TSVGUnitFactors

expandingRemarks

The dash array controls the pattern of dashes and gaps used to stroke paths. The dash array contains a list of comma and/or white space separated lengths and percentages that specify the lengths of alternating dashes and gaps. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, stroke-dasharray: 5,3,2 is equivalent to stroke-dasharray: 5,3,2,5,3,2

noteNote

The UnitFactors parameter specifies the unit factors for conversion of string lengths into actual values. For example, if the input string contains '1cm', the function uses the UnitFactors to know how large a centimer is. It is usually set when the DPI property of the TSVGDocument element is set.

expandingSee Also

Reference

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2015, Thomas G. Grubb