You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No
Issue description
When I draw a line of thickness 1 using the Graphics.DrawLine method, then the length of the line becomes larger by 1.
If I draw a line with a thickness greater than 1 along the same coordinates, then its length will be correct.
Changing property Graphics.SmoothingMode to None does not affect the result.
Also, methods Graphics.DrawPolygon and Graphics.DrawPath have the same issue.
This is how GDI+ is working in these scenarios. This is not something that the WinForms team is able to impact. This is the design of GDI+ and would not be changing given how many applications are designed and working today. Any changes could be extremely breaking.
.NET version
8.0
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No
Issue description
When I draw a line of thickness 1 using the Graphics.DrawLine method, then the length of the line becomes larger by 1.
![изображение](./?url=aHR0cHM6Ly9wcml2YXRlLXVzZXItaW1hZ2VzLmdpdGh1YnVzZXJjb250ZW50LmNvbS8xMDMwMjczMDAvMzM1MTk0ODIyLWI0NzBiYmZlLTg5YzgtNGUxMi04NDdhLTQ3MWMxODQxOWUyMS5wbmc/and0PWV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpwYzNNaU9pSm5hWFJvZFdJdVkyOXRJaXdpWVhWa0lqb2ljbUYzTG1kcGRHaDFZblZ6WlhKamIyNTBaVzUwTG1OdmJTSXNJbXRsZVNJNkltdGxlVFVpTENKbGVIQWlPakUzTWpRd01ESTFNVEVzSW01aVppSTZNVGN5TkRBd01qSXhNU3dpY0dGMGFDSTZJaTh4TURNd01qY3pNREF2TXpNMU1UazBPREl5TFdJME56QmlZbVpsTFRnNVl6Z3ROR1V4TWkwNE5EZGhMVFEzTVdNeE9EUXhPV1V5TVM1d2JtY19XQzFCYlhvdFFXeG5iM0pwZEdodFBVRlhVelF0U0UxQlF5MVRTRUV5TlRZbVdDMUJiWG90UTNKbFpHVnVkR2xoYkQxQlMwbEJWa05QUkZsTVUwRTFNMUJSU3pSYVFTVXlSakl3TWpRd09ERTRKVEpHZFhNdFpXRnpkQzB4SlRKR2N6TWxNa1poZDNNMFgzSmxjWFZsYzNRbVdDMUJiWG90UkdGMFpUMHlNREkwTURneE9GUXhOek13TVRGYUpsZ3RRVzE2TFVWNGNHbHlaWE05TXpBd0psZ3RRVzE2TFZOcFoyNWhkSFZ5WlQxbVpUazBNV1V4TlRJNE56UmxaVEpoTXpKbU9EVmpOV0poTURKbU56Z3haRFkyTm1ReFltRmpaVFZsTWpNNFptUmxOVGM1T0RFek5UY3pObVkzTlRGakpsZ3RRVzE2TFZOcFoyNWxaRWhsWVdSbGNuTTlhRzl6ZENaaFkzUnZjbDlwWkQwd0ptdGxlVjlwWkQwd0puSmxjRzlmYVdROU1DSjkuT3hxa2k0VUJXMjEzNjJFaTVkVm5GMmQ2blk5LTY0UUhCUzhaRm8zRjVhTQ==&__proxy_form=0)
If I draw a line with a thickness greater than 1 along the same coordinates, then its length will be correct.
Changing property Graphics.SmoothingMode to None does not affect the result.
Also, methods Graphics.DrawPolygon and Graphics.DrawPath have the same issue.
Steps to reproduce
DrawLineIssue.zip
The text was updated successfully, but these errors were encountered: