[Mono-bugs] [Bug 681656] New: Control.DrawToBitmap wrong origin

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 22 13:21:39 EDT 2011



           Summary: Control.DrawToBitmap wrong origin
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: xocotl at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
Gecko/20110303 Firefox/3.6.15

The rectangle passed to DrawToBitmap is supposed to be the *target* rectangle
only. The upper left hand corner of the target rectangle in DrawToBitmap needs
to correspond to the pixels at Control.Location in the real control. In other
words, the current Mono behavior is only correct when both (a) the target
rectangle has a Location of the origin, and (b) [as far as clipping is
concerned, so (b) only affects some controls] when the Control.Location is at
the origin.

Reproducible: Always

Steps to Reproduce:

Configure bugmail: https://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