_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | List of all members
Image Class Reference

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::Image ( const std::string &  filename)
inline

Load an image from a given png source

◆ ~Image()

Image::~Image ( )
inline

Member Function Documentation

◆ get_height()

int Image::get_height ( )
inline

◆ get_transcolor()

int Image::get_transcolor ( )
inline

◆ get_width()

int Image::get_width ( )
inline

◆ num_colors()

int Image::num_colors ( )
inline

◆ set_color()

void Image::set_color ( int  i,
Color  c 
)
inline

◆ swap_colors()

void Image::swap_colors ( int  a,
int  b 
)
inline

swaps color a and color b in both the palette and the image

◆ write_png()

void Image::write_png ( std::string  filename)
inline

insert palette converter here


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