Validated by Amaya

Richard G Baldwin (512) 223-4758, NRG Room 4238, Baldwin@DickBaldwin.com, http://www.austincc.edu/baldwin

INEW 2338 Advanced Java Programming

Assignment 2 - Image Processing

Revised 01/09/10 for Amaya compatibility

The files that you deliver for this assignment must include a controlling class file named Asg02.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.

See the online syllabus for version requirements for both the Java JDK and Ericson's library. 

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:
I have provided all image files that you will need to execute my version of the program and to write your own version of the program.

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 Asg02.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 Asg02

where:

a. Asg02 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.

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 Asg02 that uses Ericson's media library along with the image files named Asg02a.jpg and Asg02b.bmp to produce the graphic output images shown in Figure 1 through Figure 3 below. Your output images must match my images in every significant respect including color, size, position, etc. Don't forget to display your name in the output image shown in Figure 3.

 

Figure 1. Image from file Asg02a.JPG.

 

Figure 2. Image from file Asg02b.bmp.

 

Figure 3. Output image.

 

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:  Asg02.htm