Table of Contents

TTMSFNCBitmap Class

Cross-platform bitmap class that extends the framework bitmap with SVG loading, Base64 import/export, and uniform stream I/O across FMX, VCL, and web targets.

API unit family: TMSFNCTypes Inherits from: TBitmap

Syntax

TTMSFNCBitmap = class(TBitmap)

Properties

Name Description
SVG The SVG import object that holds the parsed SVG content when the bitmap was loaded from an SVG source.

Methods

Name Description
Draw Draws the bitmap onto the specified canvas within the given rectangle.
HasSVG Returns whether this bitmap currently contains SVG-backed content.
LoadFromBase64 Decodes a Base64-encoded image string and loads it into the bitmap.
LoadFromFile Loads the bitmap from the file at the specified path, supporting PNG, JPEG, BMP, and SVG formats.
LoadFromSVG Parses the given SVG markup and renders it into the bitmap.
LoadFromStream Loads the bitmap from the given stream, automatically detecting the image format.
SaveToBase64 Encodes the bitmap as a Base64 string and returns it.
SaveToFile Saves the bitmap to the file at the specified path.
SaveToStream Saves the bitmap to the given stream in PNG format.

Used by