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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 2006-04-25 09:35 ------- Created an attachment (id=16825) patch from Bill Holmes (sent on mono-devel) + +------- Additional Comments From [EMAIL PROTECTED] 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 ()); + } +} + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
