📜  System.Drawing 从 url 获取 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:18.644000             🧑  作者: Mango

代码示例1
WebClient wc = new WebClient();
byte[] bytes = wc.DownloadData("http://localhost/image.gif");
MemoryStream ms = new MemoryStream(bytes);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);