00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef INCL_PNGIO
00027 #define INCL_PNGIO
00028 #ifdef HAVE_PNG_H
00029
00030 int Import_png8(const char *pngname, int transp_index, int& width, int& height,
00031 int& rowbytes, int& xoff, int& yoff, unsigned char *& pixels,
00032 unsigned char *& palette, int& pal_size);
00033 int Export_png8(const char *pngname, int transp_index, int width, int height,
00034 int rowbytes, int xoff, int yoff, unsigned char * pixels,
00035 unsigned char * palette, int pal_size,
00036 bool transp_to_0 = false);
00037 int Import_png32(const char *pngname, int& width, int& height,
00038 int& rowbytes, int& xoff, int& yoff, unsigned char *& pixels,
00039 bool bottom_first = false);
00040
00041 #endif
00042 #endif