Skip to main content
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

FMX.TMSFNCTypes.hppPascalC++
function GenerateBitmap(AWidth: Single = - 1; AHeight: Single = -1): TTMSFNCBitmap; virtual; abstract;
virtual TTMSFNCBitmap* __fastcall GenerateBitmap(float AWidth = -1.000000E+00f, float AHeight = -1.000000E+00f) = 0;

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.