Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The image must:be at least 3 0 0 pixels wide by 2 0 0 pixels tall ( and NOT square ) consist of grayscale values
The image must:be at least pixels wide by pixels tall and NOT squareconsist of grayscale values from to contain at least two rectanglescontain at least two circles to have the possibility of getting an AYour programs main will declare the array, then call the following two functions which youll write:void createImageunsigned char imageWIDTH int height ;bool writeImageconst unsigned char imageWIDTH int height, const string fileName ;The createImage function will create all the images pixel values. It must make use of the following function which youll writevoid drawRectunsigned char imageWIDTH int imgHeight, int rectTop, int rectLeft, int rectHeight, int rectWidth, unsigned char grayLevel;And to have the possibility of getting an A:void drawCircleunsigned char imageWIDTH int height, int centerX, int centerY, int radius, unsigned char grayLevel;The writeImage function will write the array data to the specified text file along with the necessary header lines In C write a code
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