X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=readpng.h;fp=readpng.h;h=924b3415605d7b2171c348af0d206ee834b1fcea;hb=a86e9a3e58f55bf49d99dfd5e5d6413e17149593;hp=0000000000000000000000000000000000000000;hpb=f506842df2b0e251b56ffe0a828bb2029d423eec;p=libpicofe.git diff --git a/readpng.h b/readpng.h new file mode 100644 index 0000000..924b341 --- /dev/null +++ b/readpng.h @@ -0,0 +1,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