1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
typedef enum { READPNG_BG = 1, READPNG_FONT, READPNG_SELECTOR, READPNG_24, } readpng_what; #ifdef __cplusplus extern "C" { #endif int readpng(void *dest, const char *fname, readpng_what what, int w, int h); int writepng(const char *fname, unsigned short *src, int w, int h); #ifdef __cplusplus } #endif