pngio.h

Go to the documentation of this file.
00001 
00007 /*
00008 Copyright (C) 2002  The Exult Team
00009 Copyright (C) 1999  Jeffrey S. Freedman
00010 
00011 This program is free software; you can redistribute it and/or
00012 modify it under the terms of the GNU General Public License
00013 as published by the Free Software Foundation; either version 2
00014 of the License, or (at your option) any later version.
00015 
00016 This program is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 GNU General Public License for more details.
00020 
00021 You should have received a copy of the GNU General Public License
00022 along with this program; if not, write to the Free Software
00023 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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

Generated on Mon Jul 9 14:42:50 2007 for ExultEngine by  doxygen 1.5.1