点投影 Point and PointF classes were originally created in IronSoftware.Drawing to match the functionalities available in other drawing libraries, such as System.Drawing, SixLabors.ImageSharp, Maui.Graphics, and SkiaSharp. As a result, IronSoftware.Drawing enables implicit casting for Point and PointF objects, allowing them to be used across libraries and manipulated by users in the program. The code snippet above demonstrates how implicit casting is achieved. An IronSoftware.Drawing.Point object is cast to a Point object from another library, while the second snippet shows the opposite conversion. To perform implicit casting, simply assign the IronSoftware.Drawing.Point object to the variable of the desired library. It's important to note that implicit casting does not apply to all libraries. For instance, casting System.Drawing.PointF to IronSoftware.Drawing.PointF is not possible, as it is not supported by System.Drawing. However, casting IronSoftware.Drawing.Point and PointF to other libraries is possible. When casting from an IronSoftware.Drawing.Point object, the value type of the coordinates changes from System.Double to System.Int32, whereas for PointF, the System.Single value is maintained after casting. 相关文档链接 在Github上查看 相关教程 相关操作指南 类文档 下载IronDrawing DLL 在此页面上报告问题 准备开始了吗? Nuget 下载 13,318,306 | 版本: 2025.3 刚刚发布 免费 NuGet 下载 总下载量:13,318,306 查看许可证