me.jpg | inv_me.jpg |
To start off with image processing, let's start with something simple. Write a Java program to read all the RGB values of an image, then write the inverted image to a new file.
The name of the input image file should be entered at the command line. The name of the ouput image file should be the input file name preceeded by "inv_". For example, java image1 source.jpg would read source.jpg and create the file "inv_source.jpg".
Required error checking:
-- be sure a source file is provided
-- make sure the source file name ends in ".jpg"