#include <image.h>
Public Member Functions | |
Image () | |
Default constructor. | |
Image (int width, int height) | |
Creates an image buffer of the specified size. | |
~Image () | |
Destroys the object. | |
void | load (const std::string &filename) |
Loads an image from a file. | |
void | save (const std::string &filename) const |
Writes the image to a file. | |
void | setPixel (int x, int y, const Color &c) |
Sets the pixel at (x,y) to color c. | |
void | getPixel (int x, int y, Color &c) const |
Returns the pixel value at (x,y) in c. | |
int | getWidth () const |
Returns the width in pixels. | |
int | getHeight () const |
Returns the height in pixels. |