Answered step by step
Verified Expert Solution
Link Copied!

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 300 pixels wide by 200 pixels tall (and NOT square)consist of grayscale values from 0 to 255contain at least two rectanglescontain at least two circles (to have the possibility of getting an A).Your programs main will declare the array, then call the following two functions (which youll write):void createImage(unsigned char image[][WIDTH], int height );bool writeImage(const unsigned char image[][WIDTH], 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 write)void drawRect(unsigned char image[][WIDTH], int imgHeight, int rectTop, int rectLeft, int rectHeight, int rectWidth, unsigned char grayLevel);And to have the possibility of getting an A:void drawCircle(unsigned char image[][WIDTH], 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago