public BufferedImage aplicaFiltro(BufferedImage bi) { // BufferedImage image = ImageIO.read(new File("c:/images.jpg")); BufferedImage image2; try { blur.setValor(blurVal); bi = blur.aplicaFiltro(bi); image2 = ImageIO.read(new File("imagens/glaucoma.png")); int w = (image2.getWidth() / 100) * size; int h = (image2.getHeight() / 100) * size; // calcular o centro int x = (bi.getWidth() / 2) - (w / 2); int y = (bi.getHeight() / 2) - (h / 2); Graphics2D graphics = bi.createGraphics(); graphics.drawImage(image2, x, y, w, h, null); graphics.dispose(); return bi; } catch (IOException e) { e.printStackTrace(); } return bi; }