class ReducePixel extends PixelTransform{ int getPixel(int i, int j){ return image.getRGB( 3 * i % width , 3 * j % height ); } }