摘要: public System.Drawing.Bitmap KnockOutGzf(String path) { System.Drawing.Image image = System.Drawing.Image.FromFile(path); ... 阅读全文
posted @ 2014-12-22 15:23 aiaito 阅读(509) 评论(0) 推荐(1) 编辑
摘要: 1.项目要求上传白底的图片要进行裁剪白边,于是同事谢了个函数感觉很好用。2. #region 剪切白边 /// /// 剪切白边 /// /// /// public static Image Crop(I... 阅读全文
posted @ 2014-12-22 15:06 aiaito 阅读(964) 评论(0) 推荐(0) 编辑
摘要: //.net图片裁剪抠图:1.将不坐标点存入GraphicsPath中;GraphicsPath gPath = new GraphicsPath();2. 通常我们判断一个坐标点是否在闭合区间内通采用GraphicsPath.IsVisible(),但事实证明这种方法判断效率及其低,这里我们采用R... 阅读全文
posted @ 2014-12-22 14:56 aiaito 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 1.png很难进行压缩,一般压缩时间较长。2.jpg图片压缩方法: #region 图片压缩【之压缩jpg】 public static void JpgImgZip(Image img,string filePath) { //以下代码为保存图... 阅读全文
posted @ 2014-12-22 14:44 aiaito 阅读(1171) 评论(0) 推荐(0) 编辑