automake upgrade
[gdash.git] / src / sdl / IMG_savepng.h
blobe434680d34b63865e963b1365b96bfd36ff21cfb
1 /*
2 Based on zlib license - see http://www.gzip.org/zlib/zlib_license.html
4 This software is provided 'as-is', without any express or implied
5 warranty. In no event will the authors be held liable for any damages
6 arising from the use of this software.
8 Permission is granted to anyone to use this software for any purpose,
9 including commercial applications, and to alter it and redistribute it
10 freely, subject to the following restrictions:
12 1. The origin of this software must not be misrepresented; you must not
13 claim that you wrote the original software. If you use this software
14 in a product, an acknowledgment in the product documentation would be
15 appreciated but is not required.
16 2. Altered source versions must be plainly marked as such, and must not be
17 misrepresented as being the original software.
18 3. This notice may not be removed or altered from any source distribution.
20 "Philip D. Bober" <wildfire1138@mchsi.com>
22 #ifndef __IMG_SAVETOPNG_H__
23 #define __IMG_SAVETOPNG_H__
25 /* #include <SDL/begin_code.h> */
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
31 #define IMG_COMPRESS_OFF 0
32 #define IMG_COMPRESS_MAX 9
33 #define IMG_COMPRESS_DEFAULT -1
35 /**
36 * Takes a filename, a surface to save, and a compression level. The
37 * compression level can be 0(min) through 9(max), or -1(default).
39 DECLSPEC int SDLCALL IMG_SavePNG(const char *file,
40 SDL_Surface *surf,
41 int compression);
42 /**
43 * Takes a SDL_RWops pointer, a surface to save, and a compression level.
44 * compression can be 0(min) through 9(max), or -1(default).
46 DECLSPEC int SDLCALL IMG_SavePNG_RW(SDL_RWops *src,
47 SDL_Surface *surf,
48 int compression);
49 #ifdef __cplusplus
51 #endif
53 #endif /*__IMG_SAVETOPNG_H__*/