Ð
ÐìÇä
hi
i'm a newer to c#,
how can i stretch a image when i resize the form
Image image=Image.FromFile("c:\1.jpg");
public override OnPoint(PaintEventArgs e)
{
e.Graphics.DrawImage(image,new
Rectangle(0,0,this.Size.Width,this.Size.Height),
new
Rectangle(0,0,image.Width,image.Height),GraphicsUnit.Pixel);
}
thank lots
i'm a newer to c#,
how can i stretch a image when i resize the form
Image image=Image.FromFile("c:\1.jpg");
public override OnPoint(PaintEventArgs e)
{
e.Graphics.DrawImage(image,new
Rectangle(0,0,this.Size.Width,this.Size.Height),
new
Rectangle(0,0,image.Width,image.Height),GraphicsUnit.Pixel);
}
thank lots