转换计量单位 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 查看许可证