[Mono-bugs] [Bug 70916][Nor] New - DrawPath ignores some elements
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 31 Dec 2004 18:48:21 -0500 (EST)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=70916
--- shadow/70916 2004-12-31 18:48:21.000000000 -0500
+++ shadow/70916.tmp.17532 2004-12-31 18:48:21.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 70916
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DrawPath ignores some elements
+
+using System;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+
+class X {
+ static void Main ()
+ {
+ Bitmap b = new Bitmap (500, 500);
+
+ Point [] p = {
+ new Point (0, 0),
+ new Point (100, 100),
+ new Point (250, 100),
+ new Point (150, 150)
+ };
+
+
+ using (Graphics g = Graphics.FromImage (b)) {
+ GraphicsPath gp = new GraphicsPath ();
+ gp.AddLines (p);
+
+ g.FillRectangle (Brushes.White, 0, 0, 500, 500);
+ g.DrawPath (Pens.Black, gp);
+ }
+ b.Save ("foo.png", System.Drawing.Imaging.ImageFormat.Png);
+ }
+}
+
+When you look at foo.png, you get 1 line segment, however, with windows,
+you get 3.