Using the TSVGDocument class to read SVGs and paint to a TCanvas (VCL and FMX)
|Scroll Prev Top Next More|
The TSVGDocument class is the base class for parsing a SVG and generating TSVGxxxElement classes to describe the SVG. Use the TSVGDocument class to load an SVG and paint the SVG to a TCanvas.
The TSVGDocument is only available at run-time. The TRSSVGDocument (VCL) and TRSFMXSVGDocument (FMX) components expose the TSVGDocument for loading at design-time. To use the TSVGDocument to load an SVG, perform the following steps:
|(Optional) Use TSVGDocument.DrawBeforeElement/DrawElement/DrawAfterElement methods to Provide Fast Drawing After Changes|