[Mono-bugs] [Bug 77131][Nor] New - Constructor for Bitmap should catch a requested width/height <= 0

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Dec 30 17:10:46 EST 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 scottellington at comcast.net.

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

--- shadow/77131	2005-12-30 17:10:46.000000000 -0500
+++ shadow/77131.tmp.1606	2005-12-30 17:10:46.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 77131
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: jordi at ximian.com                            
+ReportedBy: scottellington at comcast.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Constructor for Bitmap should catch a requested width/height <= 0
+
+On Mono, you can create a bitmap with a zero or negative width/height like so:
+
+Bitmap b = new Bitmap (0,0);
+
+On MS .Net (2.0) you get the following exception:
+
+Unhandled Exception: System.ArgumentException: Parameter is not valid.
+   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat
+format)
+
+   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
+   at DrawMe.Main(String[] argv)


More information about the mono-bugs mailing list