1. 程式人生 > >Winfrom PictureBox 設置圖片自適應

Winfrom PictureBox 設置圖片自適應

bitmap cnblogs oms system from mage blog style pre

初始狀態

技術分享

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;

效果

技術分享

Winfrom PictureBox 設置圖片自適應