admin
2020-06-17 9d3d08ba960fc739498b0648d57eaf2c50a40fd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace WindowsFormsApp1.utils.ui
{
    class ImageUtil
    {
 
        //展示网络图片
        public static void DisplayImage(PictureBox pictureBox,String url) {
            try {
                Image pic = Image.FromStream(HttpUtil.HttpGetImage(url));
                pictureBox.Image = pic;
            } catch (Exception e) { 
            }
          
        }
    }
}