Question: Introduction to image manipulation LEARNING Instructions Problem Write a program to calculate the number of pixels in a given image. The user will type in
Introduction to image manipulation LEARNING Instructions Problem Write a program to calculate the number of pixels in a given image. The user will type in the file name of the image and your program should open that image (the image will always exist) and print out how many pixels are in the image. For example if the user types in dragonfly.png like this: File name: dragonfly.png 120000 pixels! We've given you a couple of image fles of different sizes to test with. Here's another example, with the elephant picture provided: File nane: elephant.png 6816 pixels 0 Hint: Multiply with+ You can calculate the number of pixels by multiplying the height and width of the image pixels width height O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
