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;

 

效果

 

posted @ 2017-05-12 15:08  Hao0  阅读(1649)  评论(0编辑  收藏  举报