loadpng.h

来自「SEAL是DOS 下的32位保护模式的GUI程序」· C头文件 代码 · 共 46 行

H
46
字号
/* loadpng.h */
#ifndef _included_loadpng_h_
#define _included_loadpng_h_

#ifdef __cplusplus
extern "C" {
#endif 



/* Overkill :-) */    
#define LOADPNG_VERSION		0
#define LOADPNG_SUBVERSION	4
#define LOADPNG_VERSIONSTR	"0.4"

    
/* Screen gamma value.  Default is -1, which chooses either:
 *  1) Get environment variable SCREEN_GAMMA
 *  2) Use the default of 2.2
 */
extern double _png_screen_gamma;

    
/* Choose zlib compression level for saving file.
 * Default is Z_BEST_COMPRESSION.
 */
extern int _png_compression_level;

    
/* Adds `PNG' to Allegro's internal file type table.
 * You can then just use load_bitmap and save_bitmap as usual.
 */
void register_png_file_type(void);
    
    
/* What do you think? */
BITMAP *load_png(char *filename, RGB *pal);
int save_png(char *filename, BITMAP *bmp, RGB *pal);

   
#ifdef __cplusplus
}
#endif

#endif /* _included_loadpng_h */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?