C#

在winform里显示网页图片

2021-05-26  本文已影响0人  花伤情犹在
string url = @"http://www.qq.com/1.jpg";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

System.IO.Stream s = request.GetResponse().GetResponseStream();
Image img = System.Drawing.Bitmap.FromStream(s);
s.Close();
this.pictureBox1.Image = img;
上一篇下一篇

猜你喜欢

热点阅读