StretchResample Function
ImagingFormats

Stretches rectangle in source image to rectangle in destination image with resampling.

Pascal
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: TFilterFunction; 
                          Radius: Single; 
                          WrapEdges: Boolean = False); overload;
File

ImagingFormats (at line 101)

Description

You can use custom sampling function and filter radius. 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.

Related Information
You are here: Symbol Reference > Functions > StretchResample Function (TImageData, LongInt, LongInt, LongInt, LongInt, TImageData, LongInt, LongInt, LongInt, LongInt, TFilterFunction, Single, Boolean)