Random seed = new Random(); WebRequest webreq = WebRequest.Create("http://ptlogin2.qq.com/getimage?aid=15000102&" + seed.NextDouble()); WebResponse webres = webreq.GetResponse(); Stream stream = webres.GetResponseStream(); Image image; image = Image.FromStream(stream); stream.Close(); pictureBox1.Image = image;
只是感觉这个速度有点慢,如果哪位朋友要是有更好的方法,还请指点。