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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 2006-04-25 15:15 ------- Created an attachment (id=16831) Updated sample app + +------- Additional Comments From [EMAIL PROTECTED] 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. + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
