Hide Comments
Hide Comments

Comments (0)

TRSSVGImage displays a graphical image of an SVG. The control ensures that the image is always of the highest resolution by redrawing the SVG when the control is rescaled.

Use TRSSVGImage to display a graphical image of a SVG on a form. Use the    SVGDocument and    SVGRootID properties to control which SVG is displayed in the image. TRSSVGImage introduces several properties to determine how the SVG is displayed within the boundaries of the TRSSVGImage object.

Namespace: FMX.RS.SVGCtrls

expandingInheritance Hierarchy

At design-time, you would:

Drop an SVG document component on your form ( RSSVGCtrls|TRSSVGDocument for VCL,  TRSFMXSVGDocument for FMX) SelectComponentVcl

Set the TRS[FMX]SVGDocument.Filename property to the SVG file. Alternatively, you can directly paste the SVG into the Lines property (warning: Delphi's TStrings editor will truncate long lines causing problems with some SVG text)

Drop a TRSSVGImage component on the form

Connect the TRSSVGImage.SVGDocument to the RSSVGDocument1 (VCL) or RSFMXSVGDocument1 (FMX) SelectSVGDocVcl

Optionally, if you only want to display one branch of the SVG document, you can set the TRSSVGImage.SVGRoot property to the SVG element you want to display. If the SVGRoot is not empty and it does not equal any SVG element in the document, nothing is displayed.

expandingSee Also

Comments (0)

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