93846b5f8bef82069a35a9a6966ac1c1557a8d07
[libpicofe.git] / readpng.h
1 #ifndef LIBPICOFE_READPNG_H
2 #define LIBPICOFE_READPNG_H
3
4 typedef enum
5 {
6         READPNG_BG = 1,
7         READPNG_FONT,
8         READPNG_SELECTOR,
9         READPNG_24,
10         READPNG_SCALE,
11 }
12 readpng_what;
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 int readpng(void *dest, const char *fname, readpng_what what, int w, int h);
19 int writepngpp(const char *fname, unsigned short *src, int w, int h, int pitch);
20 int writepng(const char *fname, unsigned short *src, int w, int h);
21
22 #ifdef __cplusplus
23 }
24 #endif
25
26 #endif // LIBPICOFE_READPNG_H