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 @   Hao0  阅读(1665)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示