TBaseImage.StretchTo Method
TBaseImage Class

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

Class
Pascal
public procedure StretchTo(SrcX: LongInt; 
                           SrcY: LongInt; 
                           SrcWidth: LongInt; 
                           SrcHeight: LongInt; 
                           DstImage: TBaseImage; 
                           DstX: LongInt; 
                           DstY: LongInt; 
                           DstWidth: LongInt; 
                           DstHeight: LongInt; 
                           Filter: TResizeFilter);
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 > Classes > TBaseImage Class > Methods > StretchTo Method