Home Dashboard Directory Help
Search

GDI+ did not draw a line as expected by curiousj


Status: 

Closed


1
0
Sign in
to vote
Type: Bug
ID: 785595
Opened: 4/25/2013 9:48:14 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

I have a program displaying a few marks (short vertical lines) on screen. The whole drawing is in logical world using scaling transform. In most cases it works nicely. However I found sometimes the drawing is not expected, they marks (short lines) all disappered while everything else is drawn properly. After dig into the issue, I found a strange thing like this,

I draw the marks with method Graphics.DrawLine (pen, x1, y1, x2, y2). they are vertical lines, so x1 supposes to equal to x2. However, if x1 really equals to x2, the line will be invisilbe. If I just make x1 lightly off to x2, for example, x2 = x1 + 1, the line will be visible, but the line will be not exactly vertial as expected.

This problem will happen only occasionly when the Graphics object is scaled to some extent.
Details
Sign in to post a comment.
Posted by curiousj on 10/22/2013 at 10:31 AM
I have not heard anything from Windows team for half a year. How do I contact them?
Posted by Microsoft on 5/1/2013 at 5:06 PM
Thank you for reporting this issue. The cause of the issue that you have reported resides in Windows. We have forwarded your issue to the appropriate team. Please expect a response from them.

- The Windows Forms Team
Posted by Microsoft on 4/25/2013 at 11:17 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 4/25/2013 at 9:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.