Defines the options of the SVG document
Namespace: RSSVGTypes
Delphi
|
type
TSVGOption = (
soSkipUnknownXML,
soUseLocaleForLanguage,
soEnforceUniqueID,
soApplyClipping,
soCompactExport,
soExportUnknownXML,
soExportDisabled,
soExportOptimizedBinaryStyleProperties,
soFMXRadialGradientPatch,
soUseFillText
);
|
|
Name
|
Description
|
|
soApplyClipping
|
Apply Clipping Path for drawing Note that this can be expensive (as well as not as graphically correct) in FMX as clipping and fill rules are not supported by graphics library and must use Clipper.pas (requires $DEFINE FMX_CLIPPING)
|
|
soCompactExport
|
When exporting SVG, only export non-inherited attributes
|
|
soEnforceUniqueID
|
Enforce Unique IDs for SVG elements or exception raised. If this option is not present, the SVG document will generate unique IDs (possibly breaking URIs) to ensure uniqueness is preserved
|
|
soExportDisabled
|
When exporting SVG, export disabled elements as well as enabled elements
|
|
soExportOptimizedBinaryStyleProperties
|
When exporting binary SVG, optimize how the Style Property Sets (Inherits and PreferredStyles) are streamed. Optimizing the set streaming is significantly faster as its streams out the ordinal value for a style property enumerated value. However, if the order of style property enumerations changes in the future, you can load incorrect results
|
|
soExportUnknownXML
|
When exporting SVG, export unknown svg/xml elements
|
|
soFMXRadialGradientPatch
|
When creating radial gradients in FMX, assume XE8+ Patch exists and set the Gradient.Transform properties for optimal rendering quality
|
|
soSkipUnknownXML
|
Skip unknown nodes or raise exception while loading XML
|
|
soUseFillText
|
When drawing text elements, use FillText (faster but less compatible) or convert text to path and use FillPath (slower but more compatible) Note that the FMX GPU Canvas requires using FillText
|
|
soUseLocaleForLanguage
|
Use the system locale language for displaying elements ( applies to Switch SVG element) (Windows Only)
|
Top
|
Important Note
|
Note that the soUseLocaleForLanguage option is only supported on Windows so the TSVGDocument.PreferredLanguage property needs to be set for accurate results on non-Windows platforms
|
|