Parses the input string for a shape rendering, which provides a hint to the SVG library about what tradeoffs to make as it renders vector graphics elements such as path elements and basic shapes such as circles and rectangles. The allowable values are auto | optimizeSpeed | crispEdges | geometricPrecision | inherit
Namespace: FMX.RS.SVGUtils
Delphi |
function ParseShapeRendering( S: String; DefValue: TSVGShapeRendering; var Inherits: Boolean ): TSVGShapeRendering; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TSVGShapeRendering
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: TSVGShapeRendering
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 |