/******************************************************** Kyle Nase Section 002 Ed Yakabosky Section 003 Homework 6 - Header file with class definition This class is designed to make simple ascii image art by using a 1-D pointer array. *********************************************************/ class TImage { public: // Can be accessed by main program. TImage(); TImage(int Rows,int Cols); ~TImage(); int getRows() const; int getColumns() const; int getPixel(int r, int c) const; void setPixel(int r, int c, int value); void clear(); void newImage(int Rows, int Cols); void drawRect(int r1, int c1,int r2,int c2, int value); void displayRaw(); void displayAscii(); private: // Can only be accessed within class. int *pixels; int nRows; int nCols; int getIndex(int r, int c) const; char toAscii(int value); };