【C#】【WinForm】显示网络图片

Winform中使用控件PictureBox查看网络图片。

1  string url = "https://i0.wp.com/tvax1.sinaimg.cn/large/005DW9w3ly1h7dc70ghc5j32yo1o0773.jpg";
2  pictureBox1.Image = Image.FromStream(System.Net.WebRequest.Create(url).GetResponse().GetResponseStream());

 

posted @ 2024-08-27 15:00  陆陆无为而治者  阅读(1)  评论(0编辑  收藏  举报