|
mp_stickers
Shocking Stickers
|
An example 'Image' class that includes only one bad invert function.
Public Member Functions | |
| void | invert () |
Public Member Functions inherited from cs225::PNG | |
| PNG () | |
| Creates an empty PNG image. More... | |
| PNG (unsigned int width, unsigned int height) | |
| Creates a PNG image of the specified dimensions. More... | |
| PNG (PNG const &other) | |
| Copy constructor: creates a new PNG image that is a copy of another. More... | |
| ~PNG () | |
| Destructor: frees all memory associated with a given PNG object. More... | |
| PNG const & | operator= (PNG const &other) |
| Assignment operator for setting two PNGs equal to one another. More... | |
| bool | operator== (PNG const &other) const |
| Equality operator: checks if two images are the same. More... | |
| bool | operator!= (PNG const &other) const |
| Inequality operator: checks if two images are different. More... | |
| bool | readFromFile (string const &fileName) |
| Reads in a PNG image from a file. More... | |
| bool | writeToFile (string const &fileName) |
| Writes a PNG image to a file. More... | |
| HSLAPixel & | getPixel (unsigned int x, unsigned int y) |
| Pixel access operator. More... | |
| const HSLAPixel & | getPixel (unsigned int x, unsigned int y) const |
| Pixel access operator. More... | |
| unsigned int | width () const |
| Gets the width of this image. More... | |
| unsigned int | height () const |
| Gets the height of this image. More... | |
| void | resize (unsigned int newWidth, unsigned int newHeight) |
| Resizes the image to the given coordinates. More... | |