Claw
1.7.3
|
A palette of colors, for palettized images. More...
#include <color_palette.hpp>
Public Types | |
typedef Color | color_type |
The type of the colors stored in the palette. |
Public Member Functions | |
color_palette (unsigned int n) | |
Constructor. | |
unsigned int | size () const |
Get the number of colors in the palette. | |
color_type & | operator[] (unsigned int i) |
Get a color from the palette. | |
const color_type & | operator[] (unsigned int i) const |
Get the value of a color from the palette. | |
const color_type & | operator() (unsigned int i) const |
Get the value of a color from the palette. |
A palette of colors, for palettized images.
Definition at line 44 of file color_palette.hpp.
claw::graphic::color_palette< Color >::color_palette | ( | unsigned int | n | ) |
const claw::graphic::color_palette< Color >::color_type & claw::graphic::color_palette< Color >::operator() | ( | unsigned int | i | ) | const |
Get the value of a color from the palette.
i | The index of the color. |
Definition at line 92 of file color_palette.tpp.
claw::graphic::color_palette< Color >::color_type & claw::graphic::color_palette< Color >::operator[] | ( | unsigned int | i | ) |
Get a color from the palette.
i | The index of the color. |
Definition at line 62 of file color_palette.tpp.
const claw::graphic::color_palette< Color >::color_type & claw::graphic::color_palette< Color >::operator[] | ( | unsigned int | i | ) | const |
Get the value of a color from the palette.
i | The index of the color. |
Definition at line 77 of file color_palette.tpp.