Shunde.NET Framework Class Library

ImageUtils.GetResizeMultiplier Method 

Calculates amount to strectch image so the width and height are at a maximum while retaining aspect ratio

public static double GetResizeMultiplier(
   Image image,
   Double newWidth,
   Double newHeight
);

Parameters

Image
Double
Double

See Also

ImageUtils Class | Shunde.Utilities Namespace