Parses the input string for a color interpolation, which specifies the color space for gradient interpolations and alpha compositing. The allowable values are auto | sRGB | linearRGB | inherit.
Namespace: RSSVGUtils
Delphi |
function ParseColorInterpolation( S: String; DefValue: TSVGColorInterpolation; var Inherits: Boolean ): TSVGColorInterpolation; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TSVGColorInterpolation
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: TSVGColorInterpolation
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 |