#include <palette.h>
Public Member Functions | |
| Palette () | |
| Palette (const String &name_) | |
| Palette (const Surface &surface, int size=256) | |
| iterator | find_closest (const Color &color, float *dist=0) |
| const_iterator | find_closest (const Color &color, float *dist=0) const |
| iterator | find_heavy () |
| iterator | find_light () |
| void | save_to_file (const synfig::String &filename) const |
Static Public Member Functions | |
| static Palette | grayscale (int steps=16) |
| static Palette | load_from_file (const synfig::String &filename) |
| Palette::Palette | ( | ) |
| Palette::Palette | ( | const String & | name_ | ) |
| Palette::Palette | ( | const Surface & | surface, | |
| int | size = 256 | |||
| ) |
Generates a palette for the given surface
| Palette::iterator Palette::find_closest | ( | const Color & | color, | |
| float * | dist = 0 | |||
| ) |
| Palette::const_iterator Palette::find_closest | ( | const Color & | color, | |
| float * | dist = 0 | |||
| ) | const |
| Palette::iterator Palette::find_heavy | ( | ) |
| Palette::iterator Palette::find_light | ( | ) |
| Palette Palette::grayscale | ( | int | steps = 16 |
) | [static] |
| void Palette::save_to_file | ( | const synfig::String & | filename | ) | const |
| Palette Palette::load_from_file | ( | const synfig::String & | filename | ) | [static] |
1.5.3