[Mono-bugs] [Bug 77734][Nor] Changed - Graphics.Transform isn't resetted between calls to Paint

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Mar 25 20:00:22 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=77734

--- shadow/77734	2006-03-16 18:19:19.000000000 -0500
+++ shadow/77734.tmp.1850	2006-03-25 20:00:22.000000000 -0500
@@ -10,14 +10,14 @@
 Component: Windows.Forms
 AssignedTo: jordi at ximian.com                            
 ReportedBy: paul at all-the-johnsons.co.uk               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
-Summary: libgdiplus not giving the correct onscreen results
+Cc: peter at novonyx.com,sebastien at ximian.com
+Summary: Graphics.Transform isn't resetted between calls to Paint
 
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem:
 If you compile the test code attached, and run you will see that instead of
 the clock being displayed once, it is being redrawn a number of times. When
@@ -85,6 +85,23 @@
 Make sure you also always update libgdiplus and System.Drawing when 
 testing MWF
 
 ------- Additional Comments From paul at all-the-johnsons.co.uk  2006-03-16 18:19 -------
 libgdiplus is updated when I do an updated (which is currently set on
 a cronjob every hour)
+
+------- Additional Comments From sebastien at ximian.com  2006-03-25 20:00 -------
+Peter, my "best guess" is that Graphics.ResetTransform() should be
+called before reusing a Graphics instance between calls to paint.
+Adding a:
+    Console.WriteLine (g.Transform.IsIdentity);
+at the start of the sample's paint method shows:
+    True
+    False
+    False
+    ...
+for Mono, while on MS.NET we get:
+    True
+    True
+    True
+    ...
+but I got no clue where it should be done ;-)


More information about the mono-bugs mailing list