上一页 1 ··· 17 18 19 20 21
摘要: /// <summary> /// 把剩余的图片和txt重新命名 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnFinish_Click(object sender, EventArgs e) { DirectoryInfo dir = new DirectoryInfo(_path); FileInfo[] files = ... 阅读全文
posted @ 2013-01-21 20:18 louiskoo 阅读(318) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 从指定文件读取内容 /// </summary> /// <param name="file"></param> /// <returns></returns> private string ReadTxt(string file) { FileStream fs = new FileStream(file,FileMode.Open,FileAccess.Read); StreamReader reader = new Str... 阅读全文
posted @ 2013-01-21 20:16 louiskoo 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Image image = Image.FromFile(item.FullName); Image bt = new Bitmap(image); listImages.Add(bt); image.Dispose(); 阅读全文
posted @ 2013-01-21 20:13 louiskoo 阅读(271) 评论(0) 推荐(0) 编辑
摘要: public static Bitmap CropBitmap(Bitmap bitmap, int cropX, int cropY, int cropWidth, int cropHeight) { Rectangle rect = new Rectangle(cropX, cropY, cropWidth, cropHeight); Bitmap cropped = bitmap.Clone(rect, bitmap.PixelFormat); return cropped; } static void Main(string[] args) { string path = ... 阅读全文
posted @ 2013-01-21 19:21 louiskoo 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 我开通了我的技术博客。 阅读全文
posted @ 2012-12-20 16:26 louiskoo 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21