TTMSFNCGraphicsSVGImport Class
Parses an SVG document and renders or exports its element tree using the graphics engine.
API unit family: TMSFNCGraphicsSVGEngine
Inherits from: TTMSFNCSVGImport
Syntax
TTMSFNCGraphicsSVGImport = class(TTMSFNCSVGImport)
Methods
| Name | Description |
|---|---|
| Clear | Clears the parsed element tree and resets the import state. |
| Draw | Draws the parsed SVG onto a VCL/FMX canvas within the specified rectangle. |
| ElementCount | Returns the number of top-level elements in the parsed SVG document. |
| GenerateBitmap | Rasterises the SVG into a bitmap at the specified dimensions. |
| HasElements | Returns True if the SVG document contains at least one element. |
| LoadFromFile | Parses SVG content from a file. |
| LoadFromStream | Parses SVG content from a stream. |
| LoadFromText | Parses SVG content from a string. |
| SaveToFile | Writes the current SVG element tree back to a file. |
| SaveToStream | Writes the current SVG element tree back to a stream. |