Table of Contents

TTMSMCPSVGImageCollection.GetBitmap Method

Rasterizes the SVG at the given index to the requested pixel dimensions and returns the result as a bitmap.

API unit family: TMS.MCP.Types Declaring type: TTMSMCPSVGImageCollection

Syntax

function GetBitmap(AIndex: Integer; AWidth, AHeight: Integer): TBitmap; overload; override;

Parameters

Name Description
AIndex Zero-based index of the SVG image to rasterize.
AWidth Target width in pixels.
AHeight Target height in pixels.

Returns

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