StretchRect Function
Imaging

Stretches the contents of the source rectangle to the destination rectangle with optional resampling.

Pascal
function StretchRect(const SrcImage: TImageData; 
                     SrcX: LongInt; 
                     SrcY: LongInt; 
                     SrcWidth: LongInt; 
                     SrcHeight: LongInt; 
                     var DstImage: TImageData; 
                     DstX: LongInt; 
                     DstY: LongInt; 
                     DstWidth: LongInt; 
                     DstHeight: LongInt; 
                     Filter: TResizeFilter): Boolean;
File

Imaging (at line 231)

Description

No blending is performed - alpha is simply copied/resampled to destination image. Note that stretching is fastest for images in the same data format (and slowest for images in special formats).

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