[Mono-bugs] [Bug 76176][Nor] New - ImageList.AddInternal fails when
transforming PixelFormat
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 21 07:29:55 EDT 2005
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 jordi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76176
--- shadow/76176 2005-09-21 07:29:55.000000000 -0400
+++ shadow/76176.tmp.16667 2005-09-21 07:29:55.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 76176
+Product: Mono: Class Libraries
+Version: 1.0
+OS: Windows XP (Cygwin)
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: jordi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ImageList.AddInternal fails when transforming PixelFormat
+
+Peter,
+
+Description:
+
+1) ImageList.ImageList inits to ColorDepth.Depth8Bit by default, that is,
+PixelFormat.Format8bppIndexed.
+
+2) A common scenario is to load 24 bmp images. The method
+ImageCollection.AddInternal converts between different formats using a
+Bitmap and then Graphics.FromImage and painting over it.
+
+3) The problem is that libgdiplus does not support calling
+Graphics.FromImage with an indexed bitmap.
+
+MS .Net uses the ImageList's Win32 API that is not built on top on gdi+ and
+ does not have these limitations.
+
+We have to find a way to fix this. One possibile solution is to use 32bits
+internally instead of 8 bits.
+
+How to reproducte: add a 24-bitmap into an imagelist. Plataform Mono /
+Win32 / our SD and SWF.
+
+Jordi,
More information about the mono-bugs
mailing list