Table of Contents

TTMSFNCGraphicsSVGImport.Draw Method

Draws the parsed SVG onto a VCL/FMX canvas within the specified rectangle.

API unit family: TMSFNCGraphicsSVGEngine Declaring type: TTMSFNCGraphicsSVGImport

Overloads

Overload 1

Draws the parsed SVG onto a VCL/FMX canvas within the specified rectangle.

procedure Draw(const ACanvas: TCanvas; ARect: TRectF; ANative: Boolean = False); overload; override;

Parameters

Name Description
ACanvas Target canvas.
ARect Destination rectangle in canvas coordinates.
ANative When True, uses platform-native rendering where available.

Overload 2

Draws the parsed SVG using a graphics context within the specified rectangle.

procedure Draw(const AGraphics: TTMSFNCGraphics; ARect: TRectF; ANative: Boolean = False; ARecreateGraphics: Boolean = True); reintroduce; overload;

Parameters

Name Description
AGraphics Target graphics context.
ARect Destination rectangle.
ANative When True, uses platform-native rendering where available.
ARecreateGraphics When True, recreates the internal graphics context before drawing.