@@ -0,0 +1,476 @@
+package pl.edu.uj.JImageStream.filters.color;%0A%0Aimport pl.edu.uj.JImageStream.api.core.Filter;%0Aimport pl.edu.uj.JImageStream.model.Pixel;%0A%0Apublic class InvertFilter extends Filter %7B%0A    @Override%0A    public void apply(int x, int y) %7B%0A        Pixel pixel = getPixel(x, y);%0A        int red = 255 - pixel.getRed();%0A        int green = 255 - pixel.getGreen();%0A        int blue = 255 - pixel.getBlue();%0A        setPixel(x, y, new Pixel(red, green, blue, pixel.getAlpha()));%0A    %7D%0A%7D%0A

Add Invert Filter