Hide Comments
Hide Comments

Using the TSVGDocument class to read SVGs and paint to a TCanvas (VCL and FMX)

Comments (0)

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:

 

hmtoggle_plus1Create the TSVGDocument

 

hmtoggle_plus1Draw the TSVGDocument to a TCanvas

 

hmtoggle_plus1(Optional) Draw SVGs Proportionally by Setting TSVGDocument.DefaultAspectRatio property

 

hmtoggle_plus1(Optional) Use TSVGDocument.DrawBeforeElement/DrawElement/DrawAfterElement methods to Provide Fast Drawing After Changes

 

 

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2016, Thomas G. Grubb