a color palette More...
#include <ColorPalette.h>
Public Member Functions | |
unsigned int | getSize (void) const |
void | addEntry (RGBTriple rgb) |
void | addEntry (BYTE r, BYTE g, BYTE b) |
This class is essentially a vector<RGBTriple> with some wrappers for exisiting methods.
add the color r/g/b to the end of this color palette
void ColorPalette::addEntry | ( | RGBTriple | rgb | ) | [inline] |
add (a copy of) rgb to the end of this color palette
unsigned int ColorPalette::getSize | ( | void | ) | const [inline] |
get the size, i.e. the number of entries of this color palette