admin
2020-06-17 9d3d08ba960fc739498b0648d57eaf2c50a40fd1
WindowsFormsApp1/utils/ui/ImageUtil.cs
@@ -14,8 +14,12 @@
        //展示网络图片
        public static void DisplayImage(PictureBox pictureBox,String url) {
            Image pic = Image.FromStream(WebRequest.Create(url).GetResponse().GetResponseStream());
            pictureBox.Image = pic;
            try {
                Image pic = Image.FromStream(HttpUtil.HttpGetImage(url));
                pictureBox.Image = pic;
            } catch (Exception e) {
            }
        }
    }
}