Point.Round(PointF) 方法

定義

藉由將 PointF 值捨入為最接近的整數值,來將指定的 Point 轉換為 PointF 物件。

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

要進行轉換的 PointF

傳回

這個方法轉換成的 Point

適用於