Declarations ​
pascal
procedure BlockTransfer(Dst: TCustomBitmap32; DstX: Integer; DstY: Integer; DstClip: TRect; Src: TCustomBitmap32; SrcRect: TRect; CombineOp: TDrawMode; CombineCallBack: TPixelCombineEvent = nil);
procedure BlockTransferX(Dst: TCustomBitmap32; DstX, DstY: TFixed; Src: TCustomBitmap32; SrcRect: TRect; CombineOp: TDrawMode; CombineCallBack: TPixelCombineEvent = nil);Overload Details
Overload 1 ​
pascal
procedure BlockTransfer(Dst: TCustomBitmap32; DstX: Integer; DstY: Integer; DstClip: TRect; Src: TCustomBitmap32; SrcRect: TRect; CombineOp: TDrawMode; CombineCallBack: TPixelCombineEvent = nil);Copies or blends an integer-aligned sub-rectangle from Src into Dst at integer position (DstX, DstY).
| Parameter | Type | Description |
|---|---|---|
Dst | TCustomBitmap32 | Destination bitmap. |
DstX, DstY | Integer | Destination top-left corner coordinates. |
DstClip | TRect | Clipping rectangle for the transfer operation. |
Src | TCustomBitmap32 | Source bitmap. |
SrcRect | TRect | Sub-rectangle of source bitmap to transfer. |
CombineOp | TDrawMode | Pixel drawing/combining mode. |
CombineCallBack | TPixelCombineEvent | Optional custom pixel combining callback. |
Overload 2 ​
pascal
procedure BlockTransferX(Dst: TCustomBitmap32; DstX, DstY: TFixed; Src: TCustomBitmap32; SrcRect: TRect; CombineOp: TDrawMode; CombineCallBack: TPixelCombineEvent = nil);Copies or blends an integer sub-rectangle from Src into Dst at fixed-point sub-pixel position (DstX, DstY) using bilinear anti-aliasing.
| Parameter | Type | Description |
|---|---|---|
Dst | TCustomBitmap32 | Destination bitmap. |
DstX, DstY | TFixed | Fixed-point destination top-left coordinates. |
Src | TCustomBitmap32 | Source bitmap. |
SrcRect | TRect | Source sub-rectangle. |
CombineOp | TDrawMode | Pixel combining mode. |
CombineCallBack | TPixelCombineEvent | Optional custom pixel combine callback. |
Description ​
BlockTransfer performs high-speed direct unscaled pixel transfers from a source bitmap to a destination bitmap with optional clipping and pixel blending. BlockTransferX allows fixed-point fractional offsets for sub-pixel accuracy.