Question: C++ , I need help writing these functions in class Image. The Images are stored in .PPM files as a list of integers. The first
C++ , I need help writing these functions in class Image. The Images are stored in .PPM files as a list of integers. The first two values of the document are the height and width of the image. class Image { private: // image dimensions int width, height; // pointer to the dynamically allocated image array int *image_array; public: Image(); // constructor - creates an empty image object, // creates an image object by reading the input file Image(string input_file); //creates an image object using the given dimensions Image (int width, int height); ~Image(); // destructor - provide as many destructors as needed // accessors/mutators int getWidth(); void setWidth(int w); int getHeight(); void setHeight(int h); Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
