[Mono-bugs] [Bug 325178] The linear gradient is not drawn correctly when LinearGradientBrush. Transform property is used

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 28 16:36:51 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=325178#c1





--- Comment #1 from Sebastien Pouliot <spouliot at novell.com>  2007-10-28 14:36:50 MST ---
Smaller self-contained test case that shows the brush offset

using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

public class MainForm : Form {

        protected override void OnPaint (PaintEventArgs e)
        {
                base.OnPaint (e);
                LinearGradientBrush brush = new LinearGradientBrush (new
Point(10, 10), new Point(15, 10), Color.Red, Color.Yellow);
                brush.ScaleTransform (10, 10);
                e.Graphics.FillRectangle (brush, 100, 100, 100, 100);
        }

        public static void Main (string[] args)
        {
                Application.Run (new MainForm ());
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list