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

Rectangle::Round method

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

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

ReturnValue

rect 构造的 Rectangle 对象

另见