$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

Image Class Reference

List of all members.


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 ()

Constructor & Destructor Documentation

Image::Image ( const std::string &  filename  )  [inline]

Load an image from a given png source

Image::~Image (  )  [inline]


Member Function Documentation

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]


The documentation for this class was generated from the following file:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.