[Mono-bugs] [Bug 504792] New: DrawImage works incorrectly with CompositingMode.SourceCopy

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 18 11:12:41 EDT 2009


           Summary: DrawImage works incorrectly with
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: alexander.shulgin at yessoftware.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User

Created an attachment (id=292786)
 --> (http://bugzilla.novell.com/attachment.cgi?id=292786)
Result of running sample code on Linux.

The following sample code produces incorrect result when compiling on mono with
libgdiplus (tested on Linux and Mac):

using System;
using System.Drawing;

namespace Sample
    public class Program
        public static void Main()
            Bitmap canvas = new Bitmap(100, 100);
            Bitmap block = new Bitmap(50, 50);
            using (Graphics g = Graphics.FromImage(block)) {
            using (Graphics g = Graphics.FromImage(canvas)) {
                g.CompositingMode =
                g.DrawImage(block, 20, 20);

On Windows the result is as expected: red rectangle on white background
(windows.png).  But on Linux the result is red rectangle on transparent
background (linux.png).

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