[Mono-bugs] [Bug 78076][Maj] Changed - Graphics.DrawImage badly
broken
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Apr 11 18:26:43 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 gonzalo at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78076
--- shadow/78076 2006-04-11 16:59:42.000000000 -0400
+++ shadow/78076.tmp.1955 2006-04-11 18:26:43.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 78076
Product: Mono: Class Libraries
Version: 1.1
OS: other
OS Details: Fedora Core 4
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Major
Component: libgdiplus
AssignedTo: gonzalo at ximian.com
ReportedBy: t7 at pobox.com
QAContact: mono-bugs at ximian.com
@@ -73,6 +73,47 @@
------- Additional Comments From t7 at pobox.com 2006-04-11 11:24 -------
Switching the new Bitmap format to PixelFormat.Format32bppArgb
eliminates the problem (though it is still a bug that it fails with
Format24bppRgb).
Also note, using DrawImageUnscaled() gives the same (bad) result.
+
+------- Additional Comments From gonzalo at ximian.com 2006-04-11 18:26 -------
+I tested your program on both MS and mono and the results are
+identical, but the file size of image2.png is different. I added 2
+Console.WriteLine to your test so that RawFormat and PixelFormat are
+displayed for both image.png and image2.png (Load after Save).
+
+This is the result on windows/MS.NET:
+----
+$ ./png.exe
+[ImageFormat: b96b3caf-0728-11d3-9d7b-0000f81ef32e]
+Format32bppArgb
+[ImageFormat: b96b3caf-0728-11d3-9d7b-0000f81ef32e]
+Format24bppRgb
+
+gonzalo at monowin1 /cygdrive/c
+$ ls -l *.png
+-rw-r--r-- 1 gonzalo None 4496 Apr 11 21:49 image.png
+-rw-r--r-- 1 gonzalo None 7130 Apr 11 21:55 image2.png
+
+gonzalo at monowin1 /cygdrive/c
+$ file *png
+image.png: PNG image data, 401 x 80, 8-bit colormap, non-interlaced
+image2.png: PNG image data, 401 x 80, 8-bit/color RGB, non-interlaced
+----
+
+And the result on linux/mono is:
+$ mono png.exe
+Png
+Format8bppIndexed
+Png
+Format24bppRgb
+$ file *.png
+image2.png: PNG image data, 401 x 80, 8-bit/color RGB, non-interlaced
+image.png: PNG image data, 401 x 80, 8-bit colormap, non-interlaced
+$ ls *.png
+-rw-r--r-- 1 gonzalo users 11295 2006-04-11 17:56 image2.png
+-rw-r--r-- 1 gonzalo users 4496 2006-04-11 17:53 image.png
+
+I'll fix PixelFormat for the loaded image, but what you reported is
+not a bug.
More information about the mono-bugs
mailing list