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=78974 --- shadow/78974 2006-07-29 15:39:03.000000000 -0400 +++ shadow/78974.tmp.23598 2006-07-29 15:39:03.000000000 -0400 @@ -0,0 +1,63 @@ +Bug#: 78974 +Product: Mono: Compilers +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: mcs does not find Brush overloaded ctor + +Please fill in this template when reporting a bug, unless you know what you +are doing. +Description of Problem: + + +Steps to reproduce the problem: +1. + +using System.Drawing; +using System.Drawing.Imaging; +using System.Drawing.Drawing2D; + +public class Test +{ + public static void Main () + { + Bitmap bitmap = null; + Color from = Color.FromArgb(231, 236, 253); + Color to = Color.FromArgb(151, 173, 255); + Rectangle rect = new Rectangle(0,0, bitmap.Width, bitmap.Height); + using(Brush brush = new LinearGradientBrush(rect, from, to, 0.0)) + { + } + } +} + + +Actual Results: + +X.cs(12,23): error CS1502: The best overloaded method match for +`System.Drawing.Drawing2D.LinearGradientBrush.LinearGradientBrush(System.Drawing.Point, +System.Drawing.Point, System.Drawing.Color, System.Drawing.Color)' has some +invalid arguments +X.cs(12,23): error CS1503: Argument 1: Cannot convert from +`System.Drawing.Rectangle' to `System.Drawing.Point' + +Expected Results: + +No error. + +How often does this happen? + +100% + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
