搜索
您的当前位置:首页正文

asp.net 获取图片高度和宽度实例代码

2020-11-27 来源:育乐教育网

代码如下:
string path = Server.MapPath("img/1.gif");
System.Drawing.Image image = System.Drawing.Image.FromFile(path);
Response.Write("宽:" + image.Width + "<br />");
Response.Write("高:" + image.Height );

Top