32 int image_width, image_height;
33 unsigned char *image_data;
40 int loadImage(
const std::string& filename);
42 int width() {
return image_width; }
43 int height() {
return image_height; }
44 unsigned char *
data() {
return image_data; }
Definition: imageppm.h:29
unsigned char * data()
Definition: imageppm.h:44
int loadImage(const std::string &filename)
Definition: imageppm.cpp:80
~ImagePPM()
Definition: imageppm.cpp:153
ImagePPM()
Definition: imageppm.cpp:69
int width()
Definition: imageppm.h:42
int storeImage(const std::string &filename)
Definition: imageppm.cpp:129
int height()
Definition: imageppm.h:43