Write a method named createCollage to create a collage of the same image at least four times onto the 7x95in.jpg blank JPEG. (You are welcome to add additional images, too.) One of those four copies can be the original picture. The other three should be modified forms. You can do any of scaling, cropping, or rotating the image; creating a negative of the image; shifting or altering colors on the image; and making it darker or lighter.

After composing your image, mirror it. You can do it vertically or horizontally (or otherwise), in any direction–just make sure that your four base images are visible still after mirroring.
Your single method should make all of this happen–all of the effects and com- positing must occur from the single function createCollage. Of course, it is perfectly okay to use other functions, but make it so that a tester of your pro- gram need only to call setMediaPath() and put all your input pictures in her mediasources directory, create a Picture object from the blank paper-sized file, and then execute createCollage()–and will expect to have a collage generated and returned.


Computer Science & Information Technology

You might also like to view...

When you double-click a file name, Windows opens a(n) ____ that you can use to view and modify the file contents.

A. file tag B. application C. Search box D. properties window

Computer Science & Information Technology

Wen booting to Windows, a user receives several messages referring to a .dll file that cannot be found. Which of the following would be the BEST course of action for the technician?

a. Copy the .dll file from another PC. b. Run Windows Update utiity to replace the DLL file. c. Run defrag utility to correct any file damage. d. Research the file to identify the application which uses the .dll.

Computer Science & Information Technology

Six stars are created from a Star constructor function using six new statements as follows

var star1 = new Star(); var star2 = new Star(); var star3 = new Star(); var star4 = new Star(); var star5 = new Star(); var star6 = new Star(); (i) Create an array, say stars, and rewrite the code using a for-loop to store the Star objects in the array. (ii) Suppose the Star object have two methods: spin() and fall(). Write a for-loop to invoke both methods on all six stars.

Computer Science & Information Technology

Using the drawing tools presented here, draw a house—just go for the simple child’s house with one door, two windows, walls, and a roof.

What will be an ideal response?

Computer Science & Information Technology