[Mono-bugs] [Bug 82388][Nor] Changed - [Win32] ArgumentException drawing EMF in RTF
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Aug 13 15:15:16 EDT 2007
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=82388
--- shadow/82388 2007-08-09 12:59:04.000000000 -0400
+++ shadow/82388.tmp.15176 2007-08-13 15:15:16.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 82388
Product: Mono: Class Libraries
Version: 1.2
-OS:
+OS: unknown
OS Details: Windows XP SP2
-Status: NEW
+Status: NEEDINFO
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Sys.Drawing.
AssignedTo: mono-bugs at ximian.com
ReportedBy: gert.driesen at pandora.be
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -72,6 +72,54 @@
at Program.Main () <0x00073>
------- Additional Comments From gert.driesen at pandora.be 2007-08-09 12:59 -------
Created an attachment (id=19767)
Gzipped tar containing repro
+
+------- Additional Comments From sebastien at ximian.com 2007-08-13 15:15 -------
+My Mono/Windows setup is busted (waiting for 1.2.5 ;-) but it looks
+similar to the "old" issue where GDI+ requires the stream to be alive
+as long as the image is (if this is the case then I'll move the bug to
+MWF).
+
+In the meantime you can try to extract (save to file) then open the
+metafile outside the RFT document (as a file).
+
+E.g.
+
+using System;
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.Windows.Forms;
+
+namespace centered {
+
+ public class MainForm : Form {
+
+ Metafile metafile;
+
+ public MainForm (string filename)
+ {
+ metafile = new Metafile (filename);
+ Paint += new PaintEventHandler (MainForm_Paint);
+ Size = new Size (300, 450);
+ }
+
+ void MainForm_Paint (object sender, PaintEventArgs e)
+ {
+ e.Graphics.ScaleTransform (0.025f, 0.025f);
+ e.Graphics.DrawImage (metafile, 10, 10,
+metafile.Width, metafile.Height);
+Console.WriteLine ("{0}, {1}, client {2}", metafile.Width,
+metafile.Height, Size);
+ }
+
+ [STAThread]
+ static void Main(string[] args)
+ {
+ Application.Run (new MainForm (args[0]));
+ }
+ }
+}
+
+
More information about the mono-bugs
mailing list