Write a C++ program that allows a user to perform the followingmanipulations:
Rotate the image by 90, 180, and 270 degrees:Prompt the user for the desired rotation degree. Alter the pixelvalues appropriately within the array structure of the Image classand update the raw data in the image file. Exit the program andopen the image with Irfan View to see the effect of therotation.
Apply color filter (brighten or darken all the pixels bya user-specified factor): Prompt the user for the desiredbrightness difference to be applied. Both positive and negativevalues must applicable in order to both darken and brighten theimage. Exit the program
OR
OR