Last modified: 3/4/06 10:50 PM. Removed non-working link to humphrey-img.txt. It's on ieng6, as documented.
Previous modifications:
The main class will be Image. You'll run it with:
java Image imageFileName
A sample can be found in ~/../public/P7/image.jar. Run it with
java -jar ~/../public/P7/image.jar imageFileName
This program is based on programming project 3 from Chapter 19 of Absolute Java.
java Image -fadein imageFileNameThis fade-in mode should start with all-black and you should slowly see the image come into view. It'll look as if the lights were out and the lights were slowly turned on. The fade-in should be complete within about 15 seconds or so (not several minutes, and not 1 second).
There is a sample implementation of this application in a jar file: image.jar.
The humphrey-img.txt sample file from the book's CD-ROM is also there.
bundleP7and carefully follow the dialog. If it is before the due deadline and all necessary assignment files are present, this will turn in your solution files. You can run bundleP7 more than once if you want; only the last one will count.
The assignment is worth 20 points. Note that we'll be testing with both the humphrey image and with another image file.