Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the link for the zip file https://rutgers.app.box.com/s/wt2fg6zgp010ikno1r7s2poer78ph697 Programming We provide this ZIP FILE containing ArtCollage.java. Update and submit the file on Autolab. Observe

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedThis is the link for the zip file

https://rutgers.app.box.com/s/wt2fg6zgp010ikno1r7s2poer78ph697

Programming We provide this ZIP FILE containing ArtCollage.java. Update and submit the file on Autolab. Observe the following rules: DO NOT use System.exit(). DO NOT add the project or package statements. DO NOT change the class name. DO NOT add import statements other than the Color class already in the ArtCollage.java file. DO NOT change the headers of ANY of the given methods. DO NOT add any new class fields. ONLY display the result as specified by the example for each problem. You may USE any of the libraries provided in the zip file. ArtCollage (110 points). The ArtCollage class create a collage of image tiles and provides methods to transform the tiles individually See ArtCollage.java for the description of each method. One-argument Constructor ArtCollage art = new ArtCollage (args[0]); art. showCollagePicture(); The original image (args[0]) has 1536 rows x 1819 columns. The collage image that results from the one-argument constructor (on the left) has 400 rows by 400 columns. Three-argument Constructor ArtCollage art = new ArtCollage (args[0], 200, 3); art.showCollagePicture(); The original image (args[0]) has 1536 rows x 1819 columns. The collage image that results from the three-argument constructor (on the left) has 600 rows by 600 columns. MakeCollage method // Creates a collage of 3x3 tiles. // Each tile dimension is 200x200 pixels. ArtCollage art = new ArtCollage (args[0], 200, 3); art.makeCollage(); art.showCollagePicture(); // Creates a default collage of 4x4 tiles. // Each default tile dimension is 100x100 pixels ArtCollage art = new ArtCollage (args[0]); art.makeCollage(); art.showCollagePicture(); Change Tile Methods 1/ Creates a collage of 3x3 tiles. // Creates a collage of 3x3 tiles. // Creates a collage of 3x3 tiles. // Each tile dimension is 200x200 pixe// Each tile dimension is 200x200 pixe// Each tile dimension is 200x200 pi ArtCollage art = ArtCollage art = ArtCollage art = new ArtCollage (args[0], 200, 3); new ArtCollage (args[0], 200, 3); new ArtCollage (args[0], 200, 3) art.makeCollage(); art.makeCollage(); art.makeCollage(); // Colorize tile at col 2, row 2 1/ to only show the red component art.colorizetile("red",2,2); art.showCollagePicture(); // Colorize tile at col 2, row 1 1/ to only show the blue component art.colorizeTile("blue",2,1); art.showCollagePicture(); // Colorize tile at col 0, row 0 // to only show the green component art.colorizeTile("green",0,0); art.showCollagePicture(); // Creates a collage of 3x3 tiles. Eac// Creates a collage of 3x3 tiles. ArtCollage art = // Each tile dimension is 200x200 pixels new ArtCollage (args[0], 200, 3); ArtCollage art = new ArtCollage (args[0], 200, 3); art.makeCollage(); art.makeCollage(); // Converts the tile at coli, row 0 // from color to greyscale // Replace tile at col 1, row 1 with art.grayscaletile(1, 0); // args[1] image art.showCollagePicture(); art.replaceTile(args[1],1,1); art.showCollagePicture(); Note: Make sure to test colorize Tile() and greyscale Tile() using a collage where each tile has a different image. ArtCollage art = new ArtCollage (args[0], 200, 2); art.makeCollage(); // Replace 3 tiles art.replaceTile(args[1],0,1); art.replacetile(args[2],1,0); art.replaceTile(args[3],1,1); art.colorizetile("green",0,0); art.showCollagePicture(); Programming We provide this ZIP FILE containing ArtCollage.java. Update and submit the file on Autolab. Observe the following rules: DO NOT use System.exit(). DO NOT add the project or package statements. DO NOT change the class name. DO NOT add import statements other than the Color class already in the ArtCollage.java file. DO NOT change the headers of ANY of the given methods. DO NOT add any new class fields. ONLY display the result as specified by the example for each problem. You may USE any of the libraries provided in the zip file. ArtCollage (110 points). The ArtCollage class create a collage of image tiles and provides methods to transform the tiles individually See ArtCollage.java for the description of each method. One-argument Constructor ArtCollage art = new ArtCollage (args[0]); art. showCollagePicture(); The original image (args[0]) has 1536 rows x 1819 columns. The collage image that results from the one-argument constructor (on the left) has 400 rows by 400 columns. Three-argument Constructor ArtCollage art = new ArtCollage (args[0], 200, 3); art.showCollagePicture(); The original image (args[0]) has 1536 rows x 1819 columns. The collage image that results from the three-argument constructor (on the left) has 600 rows by 600 columns. MakeCollage method // Creates a collage of 3x3 tiles. // Each tile dimension is 200x200 pixels. ArtCollage art = new ArtCollage (args[0], 200, 3); art.makeCollage(); art.showCollagePicture(); // Creates a default collage of 4x4 tiles. // Each default tile dimension is 100x100 pixels ArtCollage art = new ArtCollage (args[0]); art.makeCollage(); art.showCollagePicture(); Change Tile Methods 1/ Creates a collage of 3x3 tiles. // Creates a collage of 3x3 tiles. // Creates a collage of 3x3 tiles. // Each tile dimension is 200x200 pixe// Each tile dimension is 200x200 pixe// Each tile dimension is 200x200 pi ArtCollage art = ArtCollage art = ArtCollage art = new ArtCollage (args[0], 200, 3); new ArtCollage (args[0], 200, 3); new ArtCollage (args[0], 200, 3) art.makeCollage(); art.makeCollage(); art.makeCollage(); // Colorize tile at col 2, row 2 1/ to only show the red component art.colorizetile("red",2,2); art.showCollagePicture(); // Colorize tile at col 2, row 1 1/ to only show the blue component art.colorizeTile("blue",2,1); art.showCollagePicture(); // Colorize tile at col 0, row 0 // to only show the green component art.colorizeTile("green",0,0); art.showCollagePicture(); // Creates a collage of 3x3 tiles. Eac// Creates a collage of 3x3 tiles. ArtCollage art = // Each tile dimension is 200x200 pixels new ArtCollage (args[0], 200, 3); ArtCollage art = new ArtCollage (args[0], 200, 3); art.makeCollage(); art.makeCollage(); // Converts the tile at coli, row 0 // from color to greyscale // Replace tile at col 1, row 1 with art.grayscaletile(1, 0); // args[1] image art.showCollagePicture(); art.replaceTile(args[1],1,1); art.showCollagePicture(); Note: Make sure to test colorize Tile() and greyscale Tile() using a collage where each tile has a different image. ArtCollage art = new ArtCollage (args[0], 200, 2); art.makeCollage(); // Replace 3 tiles art.replaceTile(args[1],0,1); art.replacetile(args[2],1,0); art.replaceTile(args[3],1,1); art.colorizetile("green",0,0); art.showCollagePicture()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions