[Mono-bugs] [Bug 77926][Nor] Changed - Drawing small polygons results aren't visually pleasing

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 21 16:33:22 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-05-21 15:47:19.000000000 -0400
+++ shadow/77926.tmp.15330	2006-05-21 16:33:22.000000000 -0400
@@ -116,6 +116,45 @@
 
 
 ------- Additional Comments From xenomorph2 at onlinehome.de  2006-05-21 15:47 -------
 Created an attachment (id=17080)
 Source code
 
+
+------- Additional Comments From sebastien at ximian.com  2006-05-21 16:33 -------
+Alexander, don't make a judgement based on the screen outputs. By
+doing this you add the complexity of X and drivers into the problem -
+which is why I didn't see (and closed) the problem on NLD9 the first time.
+
+Instead save a PNG of your output to a file and compare the bitmaps.
+You'll see that the problem exist without filling (first sample)
+inside Cairo.
+
+// mcs 77926b.cs -r:System.Drawing.dll
+ 
+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);
+                g.DrawPolygon (Pens.Black, area);
+ 
+                bm.Save ("77926.png", ImageFormat.Png);
+        }
+}
+


More information about the mono-bugs mailing list