简体   繁体   中英

C# image auto resizing

I have a small project of a small game, so i have a Form and form background set to for example image1.jpg When i change the backgroudn to image2.jpg it auto-resizes it to 248x248 i think and then my background is small multiplied images.. My defaul image size is 700x700, same as the form is. THe commands are use are

Image myimage = new Bitmap(@"C:\Users\sdsd\Desktop\Iconscollection\images(2).jpg");
this.BackgroundImage = myimage;

So how exactly i make it to change instantly to 700x700?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM