Skip to main content
Table of Contents

TTMSFNCGraphicsSVGEngine.DrawBitmap Method

Embeds a bitmap into the SVG output as a <image> element encoded in base-64.

API unit family: TMSFNCGraphicsSVGEngine Declaring type: TTMSFNCGraphicsSVGEngine

Syntax

FMX.TMSFNCGraphicsSVGEngine.hppPascalC++
procedure DrawBitmap(ALeft, ATop, ARight, ABottom: Double; ABitmap: TTMSFNCBitmapHelperClass; AAspectRatio: Boolean = True; AStretch: Boolean = False; ACenter: Boolean = True; ACropping: Boolean = False); override;
virtual void __fastcall DrawBitmap(double ALeft, double ATop, double ARight, double ABottom, TTMSFNCBitmapHelperClass* ABitmap, bool AAspectRatio = true, bool AStretch = false, bool ACenter = true, bool ACropping = false)/* overload */;

Parameters

Name Description
ALeft Left edge of the destination rectangle.
ATop Top edge of the destination rectangle.
ARight Right edge of the destination rectangle.
ABottom Bottom edge of the destination rectangle.
ABitmap The bitmap to embed.
AAspectRatio When True, the bitmap aspect ratio is preserved.
AStretch When True, the bitmap is stretched to fill the rectangle.
ACenter When True, the bitmap is centered in the rectangle.
ACropping When True, the bitmap is cropped to the rectangle.