java图片高斯模糊

使用ImageEditor.jar包进行高斯模糊

ImageEditor.jar 提供很多强大的滤镜和图片处理效果

GaussianFilter gaussianFilter = new GaussianFilter();
BufferedImage fromImage = ImageIO.read(new File("d://a.jpg"));
BufferedImage toImage = new BufferedImage(fromImage.getWidth(), fromImage.getHeight(),BufferedImage.TYPE_INT_RGB);
gaussianFilter.setRadius(15);
gaussianFilter.filter(fromImage, toImage);
ImageIO.write(toImage, "jpg", new File("d:\\overwrite3.jpg"));

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页