【转】获取图片大小

System.Drawing.Image imgPhoto = System.Drawing.Image.FromFile(Server.MapPath(imageUrl));
int widths = imgPhoto.Width;
int heights = imgPhoto.Height;

 

posted @ 2010-03-13 15:30  哥本哈根  阅读(235)  评论(0编辑  收藏  举报