Winfrom PictureBox 设置图片自适应

初始状态

1  Bitmap bm = new Bitmap(Image.FromStream(System.Net.WebRequest.Create(new Uri(result.Result)).GetResponse().GetResponseStream()), this.wxImg.Width, this.wxImg.Height);
2                         this.wxImg.Image = bm;

效果

原文地址:https://www.cnblogs.com/DataBase-123/p/6845632.html