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: TSamplingFilter; 
                          WrapEdges: Boolean = False); overload;
File

ImagingFormats (at line 93)

Description

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.

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