The files that you deliver for this assignment must include a controlling class file named Asg03.class plus all of the source code files that you compiled to produce your class files. Your submittal must also include all of the other class files produced by your program plus the two image files required to successfully execute your program.
Click here for general requirements regarding all programming assignments.
Click here to download a zip file containing a sample version of this assignment along with two image files necessary for you to complete the assignment.
In order for you to successfully run this program on your machine, it will be necessary for you to download and install Ericson's media library, Java 1.5+ version: bookClasses10-1-07.zip. This version has some new features as seen at New Features in 8-14-07 or later bookClasses. For more information, see http://coweb.cc.gatech.edu/mediaComp-plan/101. Also see the online information for ITSE 2321 at http://www.austincc.edu/baldwin/ for more information on installing and using Ericson's media library.
Before attempting to write the program required by this assignment, you should study lessons 340 through 366 at http://www.dickbaldwin.com/tocadv.htm. If you have not completed ITSE 2317 at ACC since September 2008, you will probably also need to review the material from both ITSE 2321 and ITSE 2317 at http://www.austincc.edu/baldwin/.
GENERAL REQUIREMENTS:You should place the image files in the same folder as the class files. When you do that, you should not specify a mediapath in your program to access the image files. Just refer to the image files by their names.
I have also provided you with my compiled version of the class file named Asg03.class along with the other class files in my version of the program.
I have also provided a sample batch file that you can modify and use to execute my version of the program.
I will test your program by entering the following command at the command prompt and you should test your program the same way:
java -cp .;...MEDIAPATH...\bookClasses Asg03
where:
a. Asg03 is the name of the Java class file containing the main method for your program.
b. ...MEDIAPATH... is the path on my disk to the folder named bookClasses that I extracted from Ericson's downloadable zip file named bookClasses10-1-07.zip.
If you have any questions about any of the required procedures for this programming assignment, you must ask for clarification prior to submitting your assignment. Once you submit your assignment, it is too late to ask for clarification of the procedures.
PROGRAM SPECIFICATIONS:
Write a program named Asg03 that uses Ericson's media library
along with the image files named
Asg03a.jpg and Asg03b.bmp to produce the two graphic output images shown in Figure 1.
The images must appear in the order shown in the upper-left corner of the
screen.
Your output images must match my images in every significant respect including color, size, position, etc. In addition, your program must match the behavior of my program when you move the sliders in the GUI shown in the bottom of Figure 1.
Don't forget to display your name in both output images shown in Figure 1.
Figure 1. Screen
display at startup.

BEHAVIOR:
A brief description of the behavior of the program follows. However, this
description is for guidance only. You must run my version of the program
side-by-side with your version and confirm that the the two programs behave
identically.
This program uses four sliders to animate a skater on a snow scene.
Two input image files are required:
1. Asg03a.jpg - a snow scene.
2. Asg03b.bmp - an ice skater on a solid green background.
Two sliders are used to independently set the alpha transparency values for
pixels contained in the body of the skater and pixels outside the body of the
skater.
The other two sliders are used to position the picture of the skater when it is
drawn on a picture of the snow scene.
The slider values along with the image of the skater superimposed on the image of the snow scene at startup are shown in Figure 1.
Figure 2 shows the transparency of the skater and the background of the skater picture along with the position of the skater for the slider values shown at the bottom of Figure 2.
Figure 2. Example of
behavior.

Similarly, Figure 3 shows the transparency of the skater and the background of the skater picture along with the position of the skater for the slider values shown at the bottom of Figure 3.
Figure 3. Another
example of behavior.

Clicking the large X in the upper-right corner of either frame will terminate the program.
Note that if you should not depend on the colors in this HTML document, but instead should match the colors that are produced when you run my version of the program.
Hint: I used alpha channel transparency to achieve the results shown in Figure 3, but you are free to achieve those results however you choose.
-end-
File: Asg03.htm