Stretches rectangle in source image to rectangle in destination image with resampling.
procedure StretchResample(const SrcImage: TImageData; SrcX: LongInt; SrcY: LongInt; SrcWidth: LongInt; SrcHeight: LongInt; var DstImage: TImageData; DstX: LongInt; DstY: LongInt; DstWidth: LongInt; DstHeight: LongInt; Filter: TSamplingFilter; WrapEdges: Boolean = False); overload;
ImagingFormats (at line 93)
One of built-in resampling filters defined by Filter is used. Set WrapEdges to True for seamlessly tileable images. SrcImage and DstImage must be in the same data format. Works for all data formats except special and indexed formats.