ScaleRectToRect Function
ImagingUtility

Scales one rectangle to fit into another.

Pascal
function ScaleRectToRect(const SourceRect: TRect; 
                         const TargetRect: TRect): TRect;
File

ImagingUtility (at line 287)

Description

Proportions are preserved so it could be used for 'Stretch To Fit Window' image drawing for instance.

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