@@ -0,0 +1,654 @@
+/**%0A * Filter that flips the image horizontally. This class is COMPLETE. Don't%0A * change it. But model your other classes (such as FlipVerticalFilter) after%0A * it.%0A */%0Apublic class FlipHorizontalFilter implements Filter %7B%0A%09public void filter(PixelImage pi) %7B%0A%09%09// Get all information about the picture.%0A%0A%09%09Pixel%5B%5D%5B%5D data = pi.getData();%0A%09%09for (int row = 0; row %3C pi.getHeight(); row++) %7B%0A%09%09%09for (int col = 0; col %3C pi.getWidth() / 2; col++) %7B%0A%09%09%09%09// Swap pixel.%0A%09%09%09%09Pixel temp = data%5Brow%5D%5Bcol%5D;%0A%09%09%09%09data%5Brow%5D%5Bcol%5D = data%5Brow%5D%5Bpi.getWidth() - col - 1%5D;%0A%09%09%09%09data%5Brow%5D%5Bpi.getWidth() - col - 1%5D = temp;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09// Set back pixel.%0A%09%09pi.setData(data);%0A%09%7D%0A%7D%0A

Create FlipHorizontalFilter.java