[Mono-bugs] [Bug 575360] New: Graphics.DrawLine is one pixel off (to the right) when using a Pen wider than 1px

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 29 15:37:48 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=575360

http://bugzilla.novell.com/show_bug.cgi?id=575360#c0


           Summary: Graphics.DrawLine is one pixel off (to the right) when
                    using a Pen wider than 1px
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: stifu at free.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=339736)
 --> (http://bugzilla.novell.com/attachment.cgi?id=339736)
Test case

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2)
Gecko/20100115 Firefox/3.6

Using the DrawLine method of a Graphics object, the line drawn is horizontally
misplaced if the Pen has a width higher than 1. It is shifted to the right by 1
pixel.

The attached test case shows this issue (it zooms the result by a factor of 2
to make it clearer).

Reproducible: Always

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list