闫振

博客园 首页 联系 订阅 管理

2012年8月8日

摘要: ASP.NET中获取图片的尺寸public void GetImageSize(string FullFilePath) {//参数为图片文件的绝对路径 System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(FullFilePath); int width = bmp.Width; //宽 int height = bmp.Height; //高 }获取上传的图片的尺寸public void GetUploadImageSize() { //txt_Load为上传控件对象 ... 阅读全文
posted @ 2012-08-08 15:47 Expices 阅读(224) 评论(0) 推荐(0)