07 2012 档案

摘要:private void WriteLog(string text) { string path = AppDomain.CurrentDomain.BaseDirectory; path = System.IO.Path.Combine(path ,"OutputStreamLogs\\"+DateTime.Now.ToString("yy-MM-dd")); if (!System.IO.Directory.Exists(path)) { System.IO.Directory.CreateDirectory(path); } string file 阅读全文
posted @ 2012-07-27 13:00 草青工作室 阅读(193) 评论(0) 推荐(0)
摘要:最新更新:1208211.定义路由2.编写控制器3.编写图片压缩方法4.测试运行---------------------------------------------------1.定义路由 ,一般写在 Globals.cs 文件中 routes.MapRoute( "ImgRoute", // 图片路由名称 "pics/{thumbnailType}/{width}/{height}/{*imgPath}", // 带有参数的 URL new { controller = "Pictures", action = "Z 阅读全文
posted @ 2012-07-06 21:58 草青工作室 阅读(431) 评论(0) 推荐(0)
摘要:分为两部分,一个是操作类,另外一个是测试。直接上代码了一、测试代码 private void button1_Click(object sender, EventArgs e) { string newSourcePath = ImgPath;//源图存放目录 string newNewDir = MakePath; //新图存放目录 string sourceFile = Path.Combine(ImgPath, "app1.jpg"); //获取原图路径 string newFile = string.Empty; //新图路径 ImgThumbnail iz = n 阅读全文
posted @ 2012-07-04 16:44 草青工作室 阅读(343) 评论(0) 推荐(0)