Skip to main content
Table of Contents

TTMSFNCGraphicsContextGeneral.DrawBitmap Method

Draws a bitmap image onto the canvas at the specified destination rectangle.

API unit family: TMSFNCGraphics.General Declaring type: TTMSFNCGraphicsContextGeneral

Syntax

FMX.TMSFNCGraphics.General.hppPascalC++
procedure DrawBitmap(ABitmap: TTMSFNCDrawBitmap; ASrcRect, ADstRect: TRectF; AOpacity: Single); override;
virtual void __fastcall DrawBitmap(TTMSFNCDrawBitmap* ABitmap, const System::Types::TRectF &ASrcRect, const System::Types::TRectF &ADstRect, float AOpacity);

Parameters

Name Description
ABitmap The bitmap to draw.
ASrcRect The source region of the bitmap to copy.
ADstRect The destination rectangle on the canvas.
AOpacity Opacity value between 0.0 (transparent) and 1.0 (fully opaque).