随笔分类 -  C# C/S

应用程序开发记录
判断图片格式
摘要:private void CheckImage(string path) { MyService.Services ss = new MyService.Services(); DirectoryInfo info = new DirectoryInfo(path); foreach (var item in info.GetDirectories()) { string name = item.Name; foreach (var items in item.GetFiles()) { //name = info.Name; string extension = items.Extensi. 阅读全文
posted @ 2012-01-11 14:15 风华之恋 阅读(232) 评论(0) 推荐(0)
图片上传 自动生成大图小图 图片大小计算
摘要:创建大图小图void CreatBSimg(string extension,string path,string filename,string imgs) { #region 得到图片尺寸 int imgWidth = 0; int imgHeight = 0; string[] imgExtension = new string[] { ".jpg", ".gif", ".png", ".bmp", ".jpeg" }; foreach (string item in imgExtensi 阅读全文
posted @ 2012-01-11 14:12 风华之恋 阅读(560) 评论(0) 推荐(0)