[Mono-bugs] [Bug 77408][Nor] New - FillPath has a different behaviour from MS GDI+

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 30 14:02:57 EST 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=77408

--- shadow/77408	2006-01-30 14:02:56.000000000 -0500
+++ shadow/77408.tmp.32389	2006-01-30 14:02:56.000000000 -0500
@@ -0,0 +1,73 @@
+Bug#: 77408
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: libgdiplus
+AssignedTo: jordi at ximian.com                            
+ReportedBy: sebastien at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FillPath has a different behaviour from MS GDI+
+
+Description of Problem:
+Mono produce different result (union) when filling a path that includes a
+closed path inside another one (MS exclude this sub path). Mono results are
+identical to calling FillRectangles while MS results are different.
+
+Steps to reproduce the problem:
+1. Compile a SWF application with this code to paint
+
+private void Form1_Paint (object sender, PaintEventArgs e)
+
+{
+
+	e.Graphics.FillRectangles (Brushes.Blue, new Rectangle[3] {
+
+		new Rectangle (20, 20, 100, 100),
+
+		new Rectangle (100, 100, 20, 20),
+
+		new Rectangle (120, 120, 20, 20)
+
+		});
+
+
+
+	GraphicsPath path = new GraphicsPath ();
+
+	path.AddRectangles (new Rectangle[3] {
+
+		new Rectangle (20, 140, 100, 100),
+
+		new Rectangle (100, 220, 20, 20),
+
+		new Rectangle (120, 240, 20, 20)
+
+		});
+
+	e.Graphics.FillPath (Brushes.Red, path);
+
+}
+
+
+2. Run on Windows (MS GDI+)
+3. Run on Linux (Mono libgdiplus)
+
+Actual Results:
+Mono fills the second rectangle (bottom right) while MS doesn't paint it
+(background is shown).
+
+Expected Results:
+Should be identical.
+
+How often does this happen? 
+Always
+
+Additional Information:


More information about the mono-bugs mailing list