PPM.h
78 }
const std::vector< Color > & getPixels() const
Get read-only access to the pixels in the image. To access a pixel at coordinate (row,...
Definition: PPM.h:166
void loadFile(const char *filename)
Load a .ppm file. Throw an exception in case of an error.
Definition: PPM.cpp:41
void setHeight(unsigned int height)
Set the height for the loaded image. This must eventually match the number of pixels,...
Definition: PPM.h:159
void setWidth(unsigned int width)
Set the width for the loaded image. This must eventually match the number of pixels,...
Definition: PPM.h:152
void saveFile(const char *filename)
Save image data to a .ppm file. Throw an exception in case of an error.
Definition: PPM.cpp:84
Definition: PPM.h:113
const Color & getPixel(const int row, const int col) const
Directly access a pixel in the image.
Definition: PPM.h:179
Main namespace. Contains everything in this library.
Definition: MultiLevelPlanarManipulatorDemo.cpp:65