[Mono-bugs] [Bug 75063][Nor] Changed - [PATCH]
Graphics.DrawImage(Image, PointF[]) throws exception
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Apr 25 09:55:50 EDT 2006
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=75063
--- shadow/75063 2006-04-25 09:35:42.000000000 -0400
+++ shadow/75063.tmp.6265 2006-04-25 09:55:49.000000000 -0400
@@ -4,20 +4,20 @@
OS: Mac OS X 10.3
OS Details:
Status: NEW
Resolution:
Severity: Unknown
Priority: Normal
-Component: Sys.Drawing.
+Component: libgdiplus
AssignedTo: jordi 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
+Summary: [PATCH] Graphics.DrawImage(Image, PointF[]) throws exception
Description of Problem:
Graphics.DrawImage(Image, PointF[]) and Graphics.DrawImage(Image, Point[])
throw exception
@@ -143,6 +143,45 @@
I hope it ilustrates to see the rotations that this functions can do
------- Additional Comments From sebastien at ximian.com 2006-04-25 09:35 -------
Created an attachment (id=16825)
patch from Bill Holmes (sent on mono-devel)
+
+------- Additional Comments From sebastien at ximian.com 2006-04-25 09:55 -------
+Peter, the patch works well for me. Here's a self-contained test (only
+missing an image).
+
+// mcs 75063.cs -r:System.Windows.Forms.dll -r:System.Drawing.dll
+
+using System;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Windows.Forms;
+
+public class MainForm : Form {
+
+ public MainForm ()
+ {
+ Paint += new PaintEventHandler (FormPaint);
+ }
+
+ private void FormPaint (object sender, PaintEventArgs e)
+ {
+ Image newImage = Image.FromFile (image);
+ PointF [] punti = new PointF [3];
+ punti[0]=new PointF(10f,10f);
+ punti[1]=new PointF(70f,0f);
+ punti[2]=new PointF(30f,100f);
+ e.Graphics.DrawImage(newImage,punti);
+ }
+
+ static string image;
+
+ [STAThread]
+ public static void Main(string[] args)
+ {
+ image = args.Length == 0 ? "test.png" : args [0];
+ Application.Run (new MainForm ());
+ }
+}
+
More information about the mono-bugs
mailing list