[Mono-bugs] [Bug 78179][Maj] Changed - [PATCH] Simple LinearGradientBrush with two points is broken after libgdiplus revision r59821

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Apr 30 16:43:15 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 billholmes54 at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78179

--- shadow/78179	2006-04-25 15:15:01.000000000 -0400
+++ shadow/78179.tmp.434	2006-04-30 16:43:15.000000000 -0400
@@ -11,13 +11,13 @@
 AssignedTo: sebastien at ximian.com                            
 ReportedBy: xenomorph2 at onlinehome.de               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Simple LinearGradientBrush with two points is broken after libgdiplus revision r59821
+Summary: [PATCH] Simple LinearGradientBrush with two points is broken after libgdiplus revision r59821
 
 After libgdiplus revision r59821 simple LinearGradientBrushes with two
 points and two colors are broken. Instead of a vertical LinearGradientBrush
 I get a brush with an angle of 45 degree or 135 degree.
 
 Screenshot and sample program are attached...
@@ -66,6 +66,17 @@
 
 
 ------- Additional Comments From xenomorph2 at onlinehome.de  2006-04-25 15:15 -------
 Created an attachment (id=16831)
 Updated sample app
 
+
+------- Additional Comments From billholmes54 at gmail.com  2006-04-30 16:43 -------
+The change was to construct a rectangle from the points and determine
+the angle from the slope between the points.  From those two pieces I
+was able to reuse the rest of the code from
+GdipCreateLineBrushFromRectWithAngle to construct the matrix.  The
+rest of the code remains untouched.
+
+I have attached diff files for the patch and also a proposed change to
+the unit tests in System.Drawing.
+


More information about the mono-bugs mailing list