[Mono-bugs] [Bug 77926][Nor] Changed - Drawing small filled polygons is broken

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Apr 27 15:13:49 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=77926

--- shadow/77926	2006-03-27 23:21:40.000000000 -0500
+++ shadow/77926.tmp.25882	2006-04-27 15:13:49.000000000 -0400
@@ -52,6 +52,39 @@
 ------- Additional Comments From xenomorph2 at onlinehome.de  2006-03-27 16:35 -------
 Not fixed, sorry. 
 
 ------- Additional Comments From sebastien at ximian.com  2006-03-27 23:21 -------
 hmm... my output is (still) correct on NLD9 but isn't on SuSE 10.0.
 same bat-source, same bat-man :|
+
+------- Additional Comments From sebastien at ximian.com  2006-04-27 15:13 -------
+Miguel suggested (on IRC) that the X server may the source of the
+difference (explaining the correct result with NLD9).
+
+using System;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Drawing.Imaging;
+
+class Bug77926 {
+
+	public static void Main (string[] args)
+	{
+		Bitmap bm = new Bitmap (100, 100);
+		Graphics g = Graphics.FromImage (bm);
+
+		Point[] area = new Point[3];
+		area[0].X = 20;
+		area[0].Y = 20;
+		area[1].X = 20;
+		area[1].Y = 29;
+		area[2].X = 16;
+		area[2].Y = 24;
+			
+		g.FillPolygon (Brushes.Black, area, FillMode.Winding);
+
+		bm.Save ("77926.png", ImageFormat.Png);
+	}
+}
+
+This code save the same arrow in a PNG file - and the arrow looks bad
+(even on NLD9). It's not a fix but now I know why it looks good to me ;-)


More information about the mono-bugs mailing list