[Mono-bugs] [Bug 80681][Nor] Changed - After a bitmap is locked for ReadWrite the image is damaged using the PixelFormat Format24bppRgb.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 31 15:06:35 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=80681

--- shadow/80681	2007-01-31 14:27:42.000000000 -0500
+++ shadow/80681.tmp.18527	2007-01-31 15:06:35.000000000 -0500
@@ -159,6 +159,14 @@
 the pre-locked image
                 bitmap.UnlockBits(bmData);
                 bitmap.Save("image3.png",ImageFormat.Png); // image is
 ok and yellow
         }
 }
+
+------- Additional Comments From sebastien at ximian.com  2007-01-31 15:06 -------
+Sure? yes and no ;-) Both locking and unlocking (for Write modes)
+involves copying memory (using same function).
+
+The problem seems to be located between r60839-60877. Gonzalo made
+some fixes that, I suspect broke the 24bpp mode. I'll ping him to see
+if he recalls why the changes were required.


More information about the mono-bugs mailing list