StretchNearest Function
ImagingFormats

Stretches rectangle in source image to rectangle in destination image using nearest neighbor filtering.

Pascal
procedure StretchNearest(const SrcImage: TImageData; 
                         SrcX: LongInt; 
                         SrcY: LongInt; 
                         SrcWidth: LongInt; 
                         SrcHeight: LongInt; 
                         var DstImage: TImageData; 
                         DstX: LongInt; 
                         DstY: LongInt; 
                         DstWidth: LongInt; 
                         DstHeight: LongInt);
File

ImagingFormats (at line 70)

Description

It is fast but results look blocky because there is no interpolation used. SrcImage and DstImage must be in the same data format. Works for all data formats except special formats.

Related Information
You are here: Symbol Reference > Functions > StretchNearest Function