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 [EMAIL PROTECTED]

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: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to