轉換測量單位 IronDrawing provides an option for users who want to change the measurement unit used in Rectangle or RectangleF from pixels (px) to millimeters (mm) or vice versa. The default measurement unit used in Rectangle and RectangleF is pixels (px). After a new Rectangle with measurements specified has been instantiated, you can call the conversion method on the Rectangle. For example, use .ConvertTo(MeasurementUnits.Millimeters, 20). This will convert the measurements of the Rectangle to millimeters based on the DPI set by the user. This same approach can also be applied to the RectangleF class. 相關文檔連結 在 Github 上查看 相關教程 相關操作指南 類文檔 下載 IronDrawing DLL 報告此頁面上的問題 準備好開始了嗎? Nuget 下載 13,318,306 | 版本: 2025.3 剛剛發布 免費 NuGet 下載 總下載量:13,318,306 查看許可證