Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing a line of thickness 1 issue #11461

Closed
gc-maximloverov opened this issue May 30, 2024 · 2 comments
Closed

Drawing a line of thickness 1 issue #11461

gc-maximloverov opened this issue May 30, 2024 · 2 comments

Comments

@gc-maximloverov
Copy link

.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.
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

  1. Run attached app:
    DrawLineIssue.zip
  2. Observe incorrect result.
@gc-maximloverov gc-maximloverov added the untriaged The team needs to look at this issue in the next triage label May 30, 2024
@merriemcgaw
Copy link
Member

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.

@dotnet-policy-service dotnet-policy-service bot removed the untriaged The team needs to look at this issue in the next triage label May 30, 2024
@gc-maximloverov
Copy link
Author

Ok.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants