System::Drawing::Rectangle::Round 方法

Rectangle::Round method

从指定的 RectangleF 对象构造一个 Rectangle 对象,方法是将 RectangleF 对象的位置和大小值四舍五入到最近的整数值。

static Rectangle System::Drawing::Rectangle::Round(const RectangleF &rect)
ParameterType描述
rectconst RectangleF&要转换的 RectangleF 对象

ReturnValue

rect 构造的 Rectangle 对象

另见