BoxMath.CenterInside Method

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

CenterInside(SizeF, RectangleF)

Creates a rectangle of size 'size' with a center matching that of bounds. No rounding is performed.

public static RectangleF CenterInside(SizeF size, RectangleF bounds)

Parameters

size
System.Drawing.SizeF
bounds
System.Drawing.RectangleF

Returns

System.Drawing.RectangleF