Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Resamplers🞂StretchTransferFunction

StretchTransfer

Stretches and resamples a source bitmap rectangle onto a destination bitmap rectangle using a specified resampler.

Declaration ​

pascal
procedure StretchTransfer(Dst: TCustomBitmap32; DstRect: TRect; DstClip: TRect; Src: TCustomBitmap32; SrcRect: TRect; Resampler: TCustomResampler; CombineOp: TDrawMode; CombineCallBack: TPixelCombineEvent = nil);

Parameters ​

ParameterTypeDescription
DstTCustomBitmap32Target destination bitmap.
DstRectTRectDestination bounding rectangle.
DstClipTRectClipping rectangle on destination bitmap.
SrcTCustomBitmap32Source bitmap to resample.
SrcRectTRectSource rectangle bounds.
ResamplerTCustomResamplerResampler instance used to perform pixel reconstruction.
CombineOpTDrawModeDrawing mode (opaque, blend, transparent, custom).
CombineCallBackTPixelCombineEventCustom pixel combining callback when CombineOp is dmCustom.

Description ​

StretchTransfer rescales and blends SrcRect from Src into DstRect of Dst using the spatial filtering algorithm provided by Resampler.