Question: Write a function named makeCollage to create a collage of the same image at least four times fit onto the 7in.x95in.jpg blank JPEG. (You are
Write a function named makeCollage to create a collage of the same image at least four times fit onto the 7in.x95in.jpg blank JPEG. (You are welcome to add additional images.) One of those four copies can be the original picture. The other three should be modified forms. You can scale, crop, or rotate the image, create a negative of the image, shift or alter colors on the image, and make it darker or lighter.
After composing your image, mirror it. You can do this vertically or horizontally (or otherwise), in any direction—just make sure that your four base images are still visible after mirroring.
Your single function should make all of this happen—all of the effects and compositing must occur from the single function makeCollage. Of course, it is perfectly okay to use other functions, but make it so that a tester of your program need only call setMediaPath(), put all your input pictures in a mediasources directory, and then execute makeCollage() in order to see a collage generated, shown, and returned.
Step by Step Solution
3.42 Rating (174 Votes )
There are 3 Steps involved in it
def makeCollage canvas makePicture7inx95injpg img makePictureInsertImageNamejpg Get the four different images grayscaleImg makeGrayscaleimg invertImg ... View full answer
Get step-by-step solutions from verified subject matter experts
