public void gimp(BufferedImage image) { BlockFilter filter = new BlockFilter(); filter.setBlockSize(_blockSize); BufferedImage buffer = filter.filter(image, null); applyFilter(buffer, null); } }
dst = createCompatibleDestImage(src, null); int h = Math.min( blockSize, height-y ); int t = w*h; getRGB( src, x, y, w, h, pixels ); int r = 0, g = 0, b = 0; int argb; setRGB( dst, x, y, w, h, pixels );
dst = createCompatibleDestImage( src, null ); int h = Math.min( blockSize, height-y ); int t = w*h; getRGB( src, x, y, w, h, pixels ); int r = 0, g = 0, b = 0; int argb; setRGB( dst, x, y, w, h, pixels );
if (type == TYPE_SQUARE) { if (blockFilter == null) { blockFilter = new BlockFilter(NAME); blockFilter.setBlockSize(cellSize); dest = blockFilter.filter(src, dest); } else if (type == TYPE_BRICK) { if (brickBlockFilter == null) {