Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TCustomBitmap32🞂DrawMethodPublic

TCustomBitmap32.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;
Overload Details

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 source sub-rectangle onto this bitmap at top-left position (DstX, DstY).

ParameterTypeDescription
DstX, DstYIntegerTop-left destination coordinate on this bitmap.
SrcRectTRectSource sub-rectangle to copy.
SrcTCustomBitmap32Source bitmap.

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.

Description ​

Draw blits or resamples pixel data from Src onto this bitmap surface.

If active resamplers are set on Src, stretch drawing operations use the specified interpolation algorithm.

Example ​

pascal
DstBitmap.Draw(0, 0, SrcBitmap);