古詩詞大全網 - 四字成語 - C#的Rectangle坐標只能是Int麽?有沒有可以是double的?

C#的Rectangle坐標只能是Int麽?有沒有可以是double的?

只能是Int型

System.Drawing.Rectangle的構造函數是Rectangle(Int32, Int32, Int32, Int32)和Rectangle(Point, Size)(Point和Size也是)

如果妳需要更精確的,可以使用Region或者直接是RectangleF