Evbpc.Framework.Drawing.Size.Round C# (CSharp) Method

Round() public static method

Constructs a new Size from the specified SizeF by rounding all values to the nearest whole number.
public static Round ( SizeF value ) : Size
value SizeF The to be rounded.
return Size
        public static Size Round(SizeF value) => new Size((int)Math.Round(value.Width), (int)Math.Round(value.Height));