BoxMath.ScaleInside Method

Namespace:
Weavy.Core.Imaging
Assembly:
Weavy.Core.dll

ScaleInside(SizeF, SizeF)

Scales 'inner' to fit inside 'bounding' while maintaining aspect ratio. Upscales and downscales.

public static SizeF ScaleInside(SizeF inner, SizeF bounding)

Parameters

inner
System.Drawing.SizeF
bounding
System.Drawing.SizeF

Returns

System.Drawing.SizeF