admin
2020-06-20 9cd218f0bebc19b86efeca2b33abe3adf093990c
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) { 
            }
          
        }
    }
}