Table of Contents

TTMSFNCSVGImport.GenerateBitmap Method

Renders the current SVG content into a new bitmap of the specified size and returns it.

API unit family: TMSFNCTypes Declaring type: TTMSFNCSVGImport

Syntax

function GenerateBitmap(AWidth: Single = - 1; AHeight: Single = -1): TTMSFNCBitmap; virtual; abstract;

Parameters

Name Description
AWidth The output bitmap width in pixels. Use -1 to use the SVG's natural width.
AHeight The output bitmap height in pixels. Use -1 to use the SVG's natural height.

Returns

A new bitmap containing the rendered SVG content.