[Mono-bugs] [Bug 80842][Nor] New - ImageList messes up GetPixel/SetPixel on *nix
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Feb 14 00:38:05 EST 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by monkey at jpobst.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80842
--- shadow/80842 2007-02-14 00:38:05.000000000 -0500
+++ shadow/80842.tmp.1085 2007-02-14 00:38:05.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 80842
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: opensuse 10.2
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: libgdiplus
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: monkey at jpobst.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ImageList messes up GetPixel/SetPixel on *nix
+
+The following test works on .Net and winmono, but fails on the mono 1.2.3
+suse vmware image:
+
+[Test]
+public void SetPixelTest ()
+{
+ Bitmap b = new Bitmap (1, 1);
+ b.SetPixel (0, 0, Color.FromArgb (0, 128, 0));
+
+ ImageList il = new ImageList ();
+ il.Images.Add (b);
+
+ Assert.AreEqual (Color.FromArgb (0, 128, 0), (il.Images[0] as
+Bitmap).GetPixel (0, 0));
+}
+
+On linux, the color returned is (0, 51, 0). It only happens when the image
+is placed in the ImageList, but the fact that it works on winmono makes me
+think it must be something in libgdiplus.
More information about the mono-bugs
mailing list