Point.Round(PointF) Point.Round(PointF) Point.Round(PointF) Point.Round(PointF) Method

定義

藉由將 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 PointF PointF PointF

要進行轉換的 PointFThe PointF to convert.

傳回

這個方法轉換成的 PointThe Point this method converts to.

適用於