package rgb;

import java.awt.*;
import java.awt.image.BufferedImage;

/**
 * Created by nick on 10/24/15.
 */
public class EightBitRGBStrategy extends RGBStrategy {

    @Override
    public int getRGB(int rgb) {
        Color c = new Color(rgb);
        int red = (int)Math.floor(c.getRed() / 32) * 32;
        int green = (int)Math.floor(c.getGreen() / 32) * 32;
        int blue = (int)Math.floor(c.getBlue() / 64) * 64;
        return new Color(red, green, blue).getRGB();
    }

    /*@Override
    public Color convert(Color c) {
        int red = (int)Math.floor(c.getRed() / 32) * 32;
        int green = (int)Math.floor(c.getGreen() / 32) * 32;
        int blue = (int)Math.floor(c.getBlue() / 64) * 64;
        return new Color(red, green, blue);
    }

    @Override
    public BufferedImage convert(BufferedImage image) {
        BufferedImage result = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);
        for(int i = 0; i < image.getWidth(); i++){
            for(int j = 0; j < image.getHeight(); j++){

            }
        }
    }*/
}

@@ -482,613 +482,6 @@
  %7D%0A%0A
-    /*@Override%0A    public Color convert(Color c) %7B%0A        int red = (int)Math.floor(c.getRed() / 32) * 32;%0A        int green = (int)Math.floor(c.getGreen() / 32) * 32;%0A        int blue = (int)Math.floor(c.getBlue() / 64) * 64;%0A        return new Color(red, green, blue);%0A    %7D%0A%0A    @Override%0A    public BufferedImage convert(BufferedImage image) %7B%0A        BufferedImage result = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);%0A        for(int i = 0; i %3C image.getWidth(); i++)%7B%0A            for(int j = 0; j %3C image.getHeight(); j++)%7B%0A%0A            %7D%0A        %7D%0A    %7D*/%0A
 %7D%0A

Remove comments