Rectangle.Round

Rectangle.Round method

通过将 RectangleF 的值四舍五入到最近的整数,将指定的 RectangleF 转换为 Rectangle

public static Rectangle Round(RectangleF value)
参数类型描述
valueRectangleF要转换的 RectangleF

返回值

一个新的 Rectangle

另请参见