一个小技巧了 资料比较少 代码也就几句话 给大家参考吧 string strUrl="http://www.google.com/intl/zh-CN_ALL/images/logo.gif"; System.Net.HttpWebRequest hwreq =(System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(strUrl); System.Net.HttpWebResponse hwrep =(System.Net.HttpWebResponse)hwreq.GetResponse(); Console.WriteLine("图片字节:{0}",hwrep.ContentLength); System.Drawing.Image bmp=System.Drawing.Image.FromStream(hwrep.GetResponseStream()); Console.WriteLine("宽:{0}",bmp.Width ); Console.WriteLine("高:{0}",bmp.Height ); Console.ReadLine();