摘要: 最近公司项目用到文件树,对于工程文件中不存在的文件,要给予灰色显示,如何让图片成灰色,在网上找了个效率较高的方法,很方便调用,故记录。 1 public Bitmap ExColorDepth(Image image) 2 { 3 int Height = image.Height; 4 int Width = image.Width; 5 Bitmap bitmap = new Bitmap(Width-2, Height-2); 6 Bitmap MyBitmap = (Bitm... 阅读全文
posted @ 2011-09-09 09:41 奋斗中... 阅读(424) 评论(0) 推荐(0) 编辑