[Mono-bugs] [Bug 76178][Nor] New - GdipBitmapLockBits should implement ImageLockModeUserInputBuf

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 21 09:35:35 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 kornelpal at hotmail.com.


--- shadow/76178	2005-09-21 09:35:35.000000000 -0400
+++ shadow/76178.tmp.17948	2005-09-21 09:35:35.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 76178
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: libgdiplus
+AssignedTo: jordi at ximian.com                            
+ReportedBy: kornelpal at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: GdipBitmapLockBits should implement ImageLockModeUserInputBuf
+A comment currently states that "There is no way to set 
+ImageLockModeUserInputBuf with S.D, so we don't support it"
+This isn't true. System.Drawing.ImageLockMode.UserInputBuffer is for this 
+For detailed description and example code on using this flag see:
+According to the documentations ImageLockModeUserInputBuf should be 
+implemented as the following:
+GdipBitmapLockBits fails if Scan0 is NULL
+GdipBitmapLockBits allocates no buffer
+GdipBitmapLockBits copys data to Scan0 even if the format is the same (of 
+course only when read is requested)
+GdipBitmapLockBits fills in locked_data as usual
+GdipBitmapUnlockBits copys data back to bitmap even if the format is the 
+same (of course only when write is requested)
+GdipBitmapUnlockBits does not free Scan0

More information about the mono-bugs mailing list