GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / LargestSizeKeepingAspectRatio Method
if both width and height are zero or negative, assume 1x1
In This Topic
    LargestSizeKeepingAspectRatio Method
    In This Topic
    Compute a SizeF that fits in target while maintaining the aspect ratio given by aspect.
    Syntax
    public static SizeF LargestSizeKeepingAspectRatio( 
       SizeF target,
       SizeF aspect
    )

    Parameters

    target
    aspect
    if both width and height are zero or negative, assume 1x1
    See Also