$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
Public Member Functions | |
Image (const std::string &filename) | |
~Image () | |
void | write_png (std::string filename) |
void | swap_colors (int a, int b) |
void | set_color (int i, Color c) |
int | get_transcolor () |
int | num_colors () |
int | get_width () |
int | get_height () |
Image::Image | ( | const std::string & | filename | ) | [inline] |
Load an image from a given png source
Image::~Image | ( | ) | [inline] |
void Image::write_png | ( | std::string | filename | ) | [inline] |
insert palette converter here
void Image::swap_colors | ( | int | a, | |
int | b | |||
) | [inline] |
swaps color a and color b in both the palette and the image
void Image::set_color | ( | int | i, | |
Color | c | |||
) | [inline] |
int Image::get_transcolor | ( | ) | [inline] |
int Image::num_colors | ( | ) | [inline] |
int Image::get_width | ( | ) | [inline] |
int Image::get_height | ( | ) | [inline] |