[Mono-bugs] [Bug 529887] New: Graphics.DrawImage - wrong drawing a part of image with scaling

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 11 03:36:29 EDT 2009


           Summary: Graphics.DrawImage - wrong drawing a part of image
                    with scaling
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: PC
        OS/Version: openSUSE 11.1
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dima at dimoks.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=311812)
 --> (http://bugzilla.novell.com/attachment.cgi?id=311812)
Full source code and 2 images for quick understand

Description of Problem:
When drawing a part of image with scaling the result is differ from Microsoft
and is wrong. 

Steps to reproduce the problem:
1. Load the image (for example from EXE resource)
2. Create rectangle with size equal to the image size
3. Inflate rectangle (for example by -4 on both directions)
4. Create second rectangle (for example twice larger, than the image size)
5. Draw the part of image, described by rectangle from step 3, with scaling in
rectangle from step 4

Actual Results, Expected Results:
See attached file.

How often does this happen? 
Always. With 1, 4, 8, 24, 32 bpp image colors and 16, 24 bpp display colors.
But only on Linux. On MS Windows it's ok if runned both directly or via Mono.

Additional Information:
Attached file contains:
Linux.png - Actual Results
Win.png - Expected Results
Full source code and images to reproduce the bug.

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