Parses the input string for a fill rule value, which indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non- intersecting path, it is intuitively clear what region lies " inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.
The allowable inputs are nonzero | evenodd | inherit
Namespace: FMX.RS.SVGUtils
Delphi |
function ParseFillRule( S: String; DefValue: TSVGFillRule; var Inherits: Boolean ): TSVGFillRule; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TSVGFillRule
Default Value. If the string is empty, the default value is returned
Inherits
Type: Boolean
Set to True when the input string contains 'inherit' keyword
Type: TSVGFillRule
If the string is blank, the function returns the default value ( DefValue). If the string contains 'inherits', the function returns the default value and sets the Inherits parameter to true. |
Reference |