Skip to content
GR32>TBitmap32>DrawMethod

TBitmap32.Draw

Draws a source bitmap or sub-rectangle onto this bitmap using current DrawMode and CombineMode.

Declarations

pascal
procedure Draw(DstX, DstY: Integer; Src: TCustomBitmap32); overload;
procedure Draw(DstX, DstY: Integer; const SrcRect: TRect; Src: TCustomBitmap32); overload;
procedure Draw(const DstRect, SrcRect: TRect; Src: TCustomBitmap32); overload;

Overloads

Overload 1

pascal
procedure Draw(DstX, DstY: Integer; Src: TCustomBitmap32); overload;

Draws the entire source bitmap at top-left pixel position (DstX, DstY).

ParameterTypeDescription
DstX, DstYIntegerTop-left destination coordinate on this bitmap.
SrcTCustomBitmap32Source bitmap to draw.

Overload 2

pascal
procedure Draw(DstX, DstY: Integer; const SrcRect: TRect; Src: TCustomBitmap32); overload;

Draws a sub-rectangle from the source bitmap at top-left pixel position (DstX, DstY).

ParameterTypeDescription
DstX, DstYIntegerTop-left destination coordinate on this bitmap.
SrcRectTRectSource sub-rectangle on the source bitmap.
SrcTCustomBitmap32Source bitmap to copy or blend pixels from.

Overload 3

pascal
procedure Draw(const DstRect, SrcRect: TRect; Src: TCustomBitmap32); overload;

Stretches and blends a sub-rectangle from the source bitmap into a destination rectangle.

ParameterTypeDescription
DstRectTRectTarget destination rectangle on this bitmap.
SrcRectTRectSource sub-rectangle on the source bitmap.
SrcTCustomBitmap32Source bitmap to copy or blend pixels from.