List of utility methods to do BufferedImage Blur
BufferedImage | applySimpleBoxBlur(final BufferedImage sourceImage) Applies the operation returned by createSimpleBoxBlurFilter() to the given image and returns the modified version. final BufferedImage image = new BufferedImage(sourceImage.getWidth(), sourceImage.getHeight(), sourceImage.getType()); final Graphics2D graphics2D = image.createGraphics(); graphics2D.drawImage(sourceImage, createSimpleBoxBlurFilter(), 0, 0); graphics2D.dispose(); return image; |
BufferedImage | generateBlurImage(BufferedImage image) Generate Blur Image. float[] blurelement = { 1f / 9f, 1f / 9f, 1f / 9f, 1f / 9f, 1f / 7f, 1f / 9f, 1f / 9f, 1f / 9f, 1f / 9f }; Kernel blurKernel = new Kernel(3, 3, blurelement); ConvolveOp simpleBlur = new ConvolveOp(blurKernel, ConvolveOp.EDGE_NO_OP, null); image = simpleBlur.filter(image, null); return image; |