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: RSSVGUtils
Delphi |
function ParseFillRule( S: String; DefValue: TSVGFillRule; var Inherits: Boolean ): TSVGFillRule; |
Parameters
S
Type: String
DefValue
Type: TSVGFillRule
Inherits
Type: Boolean
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 |