Point.Round(PointF) 方法

定义

通过将 PointF 值舍入到最接近的整数值,将指定的 Point 转换为 PointF 对象。Converts the specified PointF to a Point object by rounding the PointF values to the nearest integer.

public:
 static System::Drawing::Point Round(System::Drawing::PointF value);
public static System.Drawing.Point Round (System.Drawing.PointF value);
static member Round : System.Drawing.PointF -> System.Drawing.Point
Public Shared Function Round (value As PointF) As Point

参数

value
PointF

要转换的 PointFThe PointF to convert.

返回

此方法转换得到的 PointThe Point this method converts to.

适用于