View the step-by-step solution to:

Question

Below is the screen shot of what I'm the output of ArtCollage.java. I have been sending the same question over,

over again.Screen shot-1.pngscren shot -2.pngscreen shot-3.pngscreen shot -4.png

screen snhot -5.png

screen shot -4.png

9 Q introcs.cs
C
Change Tile Methods
// Creates a collage of 3x3 tiles. E
// Creates a collage of 3x3 tiles. E
// Creates a collage of 3x3 tiles. E
ach tile dimension is 200x200 pixels
ach tile dimension is 200x200 pixels
ach tile dimension is 200x200 pixels
ArtCollage art = new ArtCollage (args
ArtCollage art = new ArtCollage(args
ArtCollage art = new ArtCollage(args
[0 ], 200, 3) ;
[0], 200, 3) ;
[0], 200, 3) ;
art. makeCollage ( ) ;
art . makeCollage ( ) ;
art. makeCollage( ) ;
// Colorize tile at col 2, row 2 to
// Colorize tile at col 2, row 1 to
// Colorize tile at col 0, row 0 to
only show the red component
only show the blue component
only show the green component
art. colorizeTile( "red" , 2,2) ;
art. colorizeTile( "blue" , 2,1) ;
art. colorizeTile( "green" , 0, 0) ;
art. showCollagePicture ( ) ;
art. showCollagePicture ( ) ;
art. showCollagePicture();
/ / Creates a collage of 3x3 tiles. E
/ / Creates a collage of 3x3 tiles. E
ach tile dimension is 200x200 pixels
ach tile dimension is 200x200 pixels
ArtCollage art = new ArtCollage (args
ArtCollage art = new ArtCollage(args
[0 ], 200, 3) ;
[0], 200, 3) ;
art. makeCollage ( ) ;
art. makeCollage ( ) ;
/ / Converts the tile at col 1, row 0
/ / Replace tile at col 1, row 1 with
from color to greyscale
args [1] image
art. greyscaleTile(1, 0) ;
art. replaceTile (args [ 1] , 1, 1) ;
art . showCollagePicture ( ) ;
art . showCollagePicture ( ) ;

Screen shot-1.png

introcs.cs.rutgers.edu/art-collage/
C
GroupMe
art collage - Introduction to Computer Science
ArtCollage-4.png
ONLY display the result as specified by the example for each problem.
You may USE any of the libraries provided in the zip file.
1. ArtCollage (100 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
resulting from the constructor on the left has 400 rows by 400 columns.
Three-argument Constructor
ArtCollage art = new ArtCollage(args [ 0], 200, 3) ;

screen shot-3.png

9 Q introcs.cs
C
MakeCollage method
// Creates a collage of 3x3 tiles. Each tile dimension is 200x2
// Creates a default collage of 4x4 tiles. Each defaul
00 pixels.
t tile dimension is 100x100 pixels.
ArtCollage art = new ArtCollage (args [ 0], 200, 3) ;
ArtCollage art = new ArtCollage(args [ 0] ) ;
art . makeCollage ( ) ;
art . makeCollage ( ) ;
art . showCollagePicture ( ) ;
art. showCollagePicture ( ) ;
Change Tile Methods

screen snhot -5.png

9 Q introcs.cs
C
// Creates a collage of 3x3 tiles. E
// Creates a collage of 3x3 tiles. E
ach tile dimension is 200x200 pixels
ach tile dimension is 200x200 pixels
ArtCollage art = new ArtCollage(args
ArtCollage art = new ArtCollage (args
[0 ], 200, 3) ;
[0], 200, 3) ;
art. makeCollage ( ) ;
art. makeCollage ( ) ;
/ / Converts the tile at col 1, row 0
// Replace tile at col 1, row 1 with
from color to greyscale
args [1] image
art . greyscaleTile(1, 0) ;
art. replaceTile (args [1] , 1, 1) ;
art. showCollagePicture( ) ;
art. showCollagePicture ( ) ;
Note: Make sure to test colorizeTile() and greyscaleTile() 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 ( ) ;

scren shot -2.png

Q introcs.cs
C
ArtCollage art = new ArtCollage(args [ 0]) ;
art. showCollagePicture( ) ;
The original image (args[0]) has 1536 rows x 1819 columns. The collage
resulting from the 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
resulting from the constructor on the left has 600 rows by 600 columns.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes