Table of Contents

TTMSFNCSVGBitmap Class

Graphic class that loads, stores, and renders SVG content as a scalable bitmap, implementing the ITMSFNCSVGBitmap interface for consistent SVG access.

API unit family: TMSFNCTypes Inherits from: TGraphic Implements: ITMSFNCSVGBitmap

Syntax

TTMSFNCSVGBitmap = class(TGraphic, ITMSFNCSVGBitmap)

Properties

Name Description
FileName File path of the SVG file last loaded into the bitmap; setting this property reloads the SVG from disk.
SVG The SVG import object that holds the parsed SVG content.

Methods

Name Description
AssignTo Copies the SVG content from this bitmap to the destination persistent object.
CanLoadFromStream Returns True when the stream contains SVG data that this class can load.
Clear Removes the current SVG content and resets the bitmap to an empty state.
Draw Renders the SVG content onto the specified canvas within the given rectangle.
GetSVG Returns the underlying SVG import object that holds the parsed SVG tree.
HasSVG Returns True when the bitmap holds a parsed SVG graphic with at least one element.
IsStreamFormatSupported Returns True when the stream contains SVG data that this class can load.
LoadFromFile Loads the SVG graphic from the specified file path.
LoadFromStream Loads the SVG graphic from the given stream.
SaveToFile Saves the SVG graphic to the specified file path.
SaveToStream Saves the SVG graphic to the given stream.

Used by