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

png.cpp File Reference
#include "SDL_image.h"
#include "stratagus.h"
#include "map.h"
#include "video.h"
#include "iolib.h"
#include "iocompat.h"

Functions

png.cpp - The png graphic file loader.
void SaveScreenshotPNG (const char *name)
 Save a screenshot to a PNG file. More...
 
void SaveMapPNG (const char *name)
 Save a screenshot to a PNG file. More...
 

Function Documentation

◆ SaveMapPNG()

void SaveMapPNG ( const char *  name)

Save a screenshot to a PNG file.

Save a whole map to a PNG file.

Parameters
namePNG filename to save.

◆ SaveScreenshotPNG()

void SaveScreenshotPNG ( const char *  name)

Save a screenshot to a PNG file.

Save a screenshot to a PNG file.

Parameters
namePNG filename to save.
(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.