Skip to main content
Table of Contents

TTMSFNCCustomImage.Draw Method

Renders the bitmap inside the specified rectangle according to the current Stretch, Center, AspectRatio, Cropping, and margin settings.

API unit family: TMSFNCImage Declaring type: TTMSFNCCustomImage

Syntax

FMX.TMSFNCImage.hppPascalC++
procedure Draw(AGraphics: TTMSFNCGraphics; ARect: TRectF); override;
virtual void __fastcall Draw(TTMSFNCGraphics* AGraphics, const System::Types::TRectF &ARect);

Parameters

Name Description
AGraphics Graphics context to draw on.
ARect Bounding rectangle available for drawing the image.