[Mono-bugs] [Bug 78892][Min] Changed - ImageFormat.ToString() should be human readable

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 19 21:21:04 EDT 2006

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 sebastien at ximian.com.


--- shadow/78892	2006-07-18 16:00:27.000000000 -0400
+++ shadow/78892.tmp.22469	2006-07-19 21:21:04.000000000 -0400
@@ -1,17 +1,17 @@
 Bug#: 78892
 Product: Mono: Class Libraries
 Version: 1.1
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Minor
 Component: Sys.Drawing.
-AssignedTo: peter at novonyx.com                            
+AssignedTo: sebastien at ximian.com                            
 ReportedBy: scottell.lists at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 Summary: ImageFormat.ToString() should be human readable
@@ -30,6 +30,26 @@
 MS.NET 2.0 returns: 
 [ImageFormat: b96b3caf-0728-11d3-9d7b-0000f81ef32e]
 In earlier versions, this worked correctly.
+------- Additional Comments From sebastien at ximian.com  2006-07-19 21:21 -------
+You're right. I did a change (to fix the unit tests) but it wasn't
+completely correct. Under MS the ImageFormat.Png static property isn't
+considered the same ImageFormat as a new one created with the same
+Guid (see sample). I'll fix this asap.
+using System;
+using System.Drawing.Imaging;
+public class T {
+	public static void Main ()
+	{
+		ImageFormat png = new ImageFormat (ImageFormat.Png.Guid);
+		Console.WriteLine (png);
+		Console.WriteLine (ImageFormat.Png);
+	}

More information about the mono-bugs mailing list