Advanced Strategic Command
Functions
surface2png.cpp File Reference
#include <png.h>
#include "surface2png.h"
#include "../util/messaginghub.h"
Include dependency graph for surface2png.cpp:

Go to the source code of this file.

Functions

void writePNG (const ASCString &filename, const Surface &s)
 
void writePNGtrim (const ASCString &filename, const Surface &s)
 
void writePNG (const ASCString &filename, const Surface &s, const SDLmm::SRect &rect)
 
void writePNG (const ASCString &filename, const Surface &s, int x1, int y1, int w, int h)
 

Function Documentation

void writePNG ( const ASCString filename,
const Surface s 
)
void writePNG ( const ASCString filename,
const Surface s,
const SDLmm::SRect &  rect 
)

Definition at line 55 of file surface2png.cpp.

References writePNG().

void writePNG ( const ASCString filename,
const Surface s,
int  x1,
int  y1,
int  w,
int  h 
)

Definition at line 84 of file surface2png.cpp.

References errorMessage().

void writePNGtrim ( const ASCString filename,
const Surface s 
)

Definition at line 36 of file surface2png.cpp.

References max(), min(), Surface::transparent, and writePNG().