//------------------------------------------// PNGFILE.H -- Header File for pngfile.c//------------------------------------------// Copyright 2000, Willem van Schaik. For conditions of distribution and// use, see the copyright/license/disclaimer notice in png.h#include <stdio.h>#include <stdlib.h>#include <string.h>#include <windows.h>voidPngFileInitialize(HWNDhwnd);BOOLPngFileOpenDlg(HWNDhwnd,PTSTRpstrFileName,PTSTRpstrTitleName);BOOLPngFileSaveDlg(HWNDhwnd,PTSTRpstrFileName,PTSTRpstrTitleName);BOOLPngLoadImage(PTSTRpstrFileName,png_byte**ppbImageData,int*piWidth,int*piHeight,int*piChannels,png_color*pBkgColor);BOOLPngSaveImage(PTSTRpstrFileName,png_byte*pDiData,intiWidth,intiHeight,png_colorBkgColor);#if defined(PNG_NO_STDIO)staticvoidpng_read_data(png_structppng_ptr,png_bytepdata,png_size_tlength);staticvoidpng_write_data(png_structppng_ptr,png_bytepdata,png_size_tlength);staticvoidpng_flush(png_structppng_ptr);#endif