Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a Python program that allows the user to choose an image using the mouse, and also takes one command line argument which is where
Create a Python program that allows the user to choose an image using the mouse, and also takes one command line argument which is where the user wishes to write the file. It then manipulates and shows the final manipulated image to the user and when it is done with the manipulation it also writes it to disk as indicated by the user at runtime.
The program manipulates the image in the following way:
- The main function will take one argument which is a text string indicating where the user wishes to write the file.
- It has the user pickAFile() to edit
- It changes the light purple stars to a green color
- It changes the pinkish stars to a deep red color
- It changes the red circle to black
- It changes the orange ellipse to blue
- It changes the light blue rectangle to gray
- It changes the brown body and head of the ukulele to dark blue
- It changes blackish fretboard of the ukulele to red
- It lightens the top left quarter of the image.
- It then displays the image to the user
- It then writes the image to disk as the user indicated in the call to the main function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started