/** * PhotoLabTester2.java * * @author Dave Musicant * @author Jeff Ondich * @author Amy Csizmar Dalal * @version 1.1 4/15/05 * * This class provides another test of your PhotoLab class. * Modify it as you see fit. */ import java.io.*; import java.awt.*; public class PhotoLabTester2 { public static void main( String[] args ) throws IOException { EzImage dave = new EzImage( "dave.jpg" ); PhotoLab photoLab = new PhotoLab( dave ); dave.show( "Original",0, 0); Color darkPurple = new Color( 127, 0, 127 ); photoLab.replaceWall(darkPurple); EzImage image1 = photoLab.getNewImage(); image1.show( "Dave against a purple wall", 200, 0); EzImage background = new EzImage( "background3.jpg" ); photoLab.replaceWall( background ); EzImage image2 = photoLab.getNewImage(); image2.show( "Dave on vacation", 400, 0); } }