Skip to main content
Table of Contents

TTMSFNCGraphicsSVGImport.GenerateBitmap Method

Rasterises the SVG into a bitmap at the specified dimensions.

API unit family: TMSFNCGraphicsSVGEngine Declaring type: TTMSFNCGraphicsSVGImport

Syntax

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

Parameters

Name Description
AWidth Target bitmap width in pixels; pass -1 to use the SVG viewport width.
AHeight Target bitmap height in pixels; pass -1 to use the SVG viewport height.

Returns

New bitmap containing the rendered SVG; caller is responsible for freeing it.