[Mono-bugs] [Bug 75063][Nor] New - Graphics.DrawImage(Image,
PointF[]) throws exception
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri May 27 05:31:22 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 davide.morelli at parser.it.
http://bugzilla.ximian.com/show_bug.cgi?id=75063
--- shadow/75063 2005-05-27 05:31:22.000000000 -0400
+++ shadow/75063.tmp.21539 2005-05-27 05:31:22.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 75063
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Mac OS X 10.3
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: davide.morelli at parser.it
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Graphics.DrawImage(Image, PointF[]) throws exception
+
+Description of Problem:
+Graphics.DrawImage(Image, PointF[]) and Graphics.DrawImage(Image, Point[])
+throw exception
+
+
+Steps to reproduce the problem:
+1. create a Form
+
+2. place an image with filename "test.jpg" in its folder
+
+3. load the image and try to draw it using Graphics.DrawImage(Image,
+PointF[])
+
+follows an example code to be put in the onPaint event handler of the
+Form:
+
+ private void Form1_Paint(object sender,
+System.Windows.Forms.PaintEventArgs e)
+ {
+ Image newImage = Image.FromFile
+(Application.StartupPath.ToString()+"/test.jpg");
+ try{
+ PointF [] punti = new PointF[3];
+ punti[0]=new PointF(10f,10f);
+ punti[1]=new PointF(100f,0f);
+ punti[2]=new PointF(20f,100f);
+ e.Graphics.DrawImage(newImage,punti);
+ } catch(Exception ex)
+ {
+ MessageBox.Show(ex.ToString());
+ }
+
+ }
+
+
+Actual Results:
+
+System.ArgumentException: Invalid Parameter. A null reference or invalid
+value was found.
+in <0x000BB> System.Drawin.GDIPlus:CheckStatus (Status status)
+in <0x00060> System.Drawin.Graphics:DrawImage(System.Drawing.Image image,
+System.Drawing.PointF[] destPoints)
+in (wrapper remoting-invoke-with-check)
+SystemSystem.Drawin.Graphics:DrawImage
+(System.Drawing.Image,System.Drawing.PointF[])
+
+
+Expected Results:
+Image drawn on the form
+
+How often does this happen?
+always
+
+Additional Information:
+I am using mono 1.1.7
+os: 10.3 tiger
+hw: MacMini
More information about the mono-bugs
mailing list