Table of Contents

TTMSFNCGraphicsSVGImport.GenerateBitmap Method

Rasterises the SVG into a bitmap at the specified dimensions.

API unit family: TMSFNCGraphicsSVGEngine Declaring type: TTMSFNCGraphicsSVGImport

Syntax

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

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.