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

TCustomBitmap32.DrawTo

Draws this bitmap or a sub-rectangle onto a target destination bitmap.

Declarations ​

pascal
procedure DrawTo(Dst: TCustomBitmap32); overload;
procedure DrawTo(Dst: TCustomBitmap32; DstX, DstY: Integer); overload;
procedure DrawTo(Dst: TCustomBitmap32; DstX, DstY: Integer; const SrcRect: TRect); overload;
procedure DrawTo(Dst: TCustomBitmap32; const DstRect: TRect); overload;
procedure DrawTo(Dst: TCustomBitmap32; const DstRect, SrcRect: TRect); overload;
Overload Details

Overload 1 ​

pascal
procedure DrawTo(Dst: TCustomBitmap32); overload;

Draws this entire bitmap onto the destination bitmap at (0, 0).

ParameterTypeDescription
DstTCustomBitmap32Target destination bitmap.

Overload 2 ​

pascal
procedure DrawTo(Dst: TCustomBitmap32; DstX, DstY: Integer); overload;

Draws this entire bitmap onto the destination bitmap at (DstX, DstY).

ParameterTypeDescription
DstTCustomBitmap32Target destination bitmap.
DstX, DstYIntegerDestination coordinates.

Overload 3 ​

pascal
procedure DrawTo(Dst: TCustomBitmap32; DstX, DstY: Integer; const SrcRect: TRect); overload;

Draws a sub-rectangle of this bitmap onto the destination bitmap at (DstX, DstY).

ParameterTypeDescription
DstTCustomBitmap32Target destination bitmap.
DstX, DstYIntegerDestination coordinates.
SrcRectTRectSource sub-rectangle.

Overload 4 ​

pascal
procedure DrawTo(Dst: TCustomBitmap32; const DstRect: TRect); overload;

Stretches this entire bitmap into the destination rectangle of Dst.

ParameterTypeDescription
DstTCustomBitmap32Target destination bitmap.
DstRectTRectTarget destination rectangle.

Overload 5 ​

pascal
procedure DrawTo(Dst: TCustomBitmap32; const DstRect, SrcRect: TRect); overload;

Stretches a sub-rectangle of this bitmap into a destination rectangle on Dst.

ParameterTypeDescription
DstTCustomBitmap32Target destination bitmap.
DstRectTRectTarget destination rectangle.
SrcRectTRectSource sub-rectangle.

Description ​

DrawTo draws this bitmap onto Dst.

Example ​

pascal
SrcBitmap.DrawTo(DstBitmap, 10, 10);