[Mono-bugs] [Bug 457597] New: ImageLayout. Stretch for background image not acting like dot net for PictureBox.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 9 08:08:35 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=457597


           Summary: ImageLayout.Stretch for background image not acting like
                    dot net for PictureBox.
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mattias at flowertwig.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
When setting BackgroundImageLayout property of a PictureBox to
ImageLayout.Stretch, mono will try to fade image instead of stretching it like
Net does.

Steps to reproduce the problem:
public LayoutControl()
{
  pictureBox5.BackgroundImage = new Bitmap(typeof(Program),
"Images.Middle.gif");
  pictureBox5.Width = this.Width - pictureBox4.Width - pictureBox6.Width;
  pictureBox5.Height = this.Height - pictureBox2.Height - pictureBox8.Height;
  pictureBox5.Location = new Point(pictureBox4.Width, pictureBox2.Height);
  if (pictureBox5.BackgroundImage.Height > 1 ||
pictureBox5.BackgroundImage.Width > 1)
  {
     pictureBox5.BackgroundImageLayout = ImageLayout.Stretch; // This line will
cause the graphic bugs compared to .Net 2.0.
  }
}



Actual Results:
http://code.google.com/p/xmpl/wiki/CustomDesign

Expected Results:
http://code.google.com/p/xmpl/wiki/CustomDesign

How often does this happen? 
Always

Additional Information:
If i forgot something, please ask.


-- 
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