[Mono-bugs] [Bug 80842][Nor] Changed - ImageList messes up GetPixel/SetPixel on *nix

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 14 09:20:49 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 sebastien at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80842

--- shadow/80842	2007-02-14 03:52:37.000000000 -0500
+++ shadow/80842.tmp.9140	2007-02-14 09:20:49.000000000 -0500
@@ -50,6 +50,26 @@
 bitmap = new Bitmap(1, 1, PixelFormat.Format8bppIndexed);
 Palette8Bit = bitmap.Palette;
 bitmap.Dispose();
 
 So I think de difference is in deafult palettes. To provide 
 compatibility with GDI+, libgdiplus should use the same palettes.
+
+------- Additional Comments From sebastien at ximian.com  2007-02-14 09:20 -------
+Yes, the original bitmap is 32bpp, while the one created inside the
+ImageList is 8bpp indexed.
+
+mono --trace=T:System.Drawing.GDIPlus 80842.exe
+
+...
+ENTER: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipCreateBitmapFromScan0
+(int,int,int,System.Drawing.Imaging.PixelFormat,intptr,intptr&)(1, 1,
+0, 2498570, (nil), [BYREF:0xbff3c8c8], )
+...
+ENTER: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipCreateBitmapFromScan0
+(int,int,int,System.Drawing.Imaging.PixelFormat,intptr,intptr&)(1, 1,
+0, 198659, (nil), [BYREF:0xbff3c5dc], )
+...
+
+I'll check the default palettes.


More information about the mono-bugs mailing list