Table of Contents

Method Round

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Round(RectD, MidpointRounding?)

Converts the specified RectD to a RectI by rounding the RectD values to the nearest integer values.

public static RectI Round(RectD value, MidpointRounding? rounding = null)

Parameters

value RectD

The RectD to be converted.

rounding MidpointRounding?

The MidpointRounding to use when Round(double, MidpointRounding) is called.

Returns

RectI

The rounded integer value of the RectI.

Remarks

Rounds a floating-point value to the nearest integer.