The pictures at the end of the assignment were created by calling the
ManipulatedPhotos.java program with the following command.
java ManipulatedPhotos babies.jpg
Provide the missing code to the given program.
Introduce two new extended classes PixelA.java and PixelB.java of
PixelTransform.java, and introduce to the main method code that use
the extended classes to create two additional transformed photos.
Notes.
Submit your source files with the ‘submit c214aa lab8 *Photo*.java*Pixel*.java’ command.
To view a photo ‘name.jpg’
Place the file in your ~/WWW directory: ‘cp name.jpg ~/WWW/.’.
Provide public access to the file: ‘chmod 644 ~/WWW/name.jpg’.
Open the following file with Mozilla Firefox.
http://www.cse.ohio-state.edu/~username/name.jpg
Your extended classes PixelA.java and PixelB.java should show creativity.
Their implementations should be original—they should not be just minor
variants of the given classes of the assignment.
If questions in an email of yours refer to a program you wrote, please don’t
include the program in the email. Instead, put the program in your WWW
directory with an extension .txt added to the file name (e.g., Foo.java.txt),
change the access mode of the program to 644, and provide just the file name in
the email.
class RedPixel extends PixelTransform{ int getPixel(int i, int j){ int intColor = image.getRGB(i,j); Color color = new Color( intColor ); return new Color ( color.getRed(), 0, 0 ) . getRGB(); } }