2011-09-03 10:53:07 -04:00
|
|
|
/*------------------------------------------*/
|
|
|
|
/* PNGFILE.H -- Header File for pngfile.c*/
|
|
|
|
/*------------------------------------------*/
|
2000-06-23 22:38:16 -04:00
|
|
|
|
2011-09-03 10:53:07 -04:00
|
|
|
/* Copyright 2000, Willem van Schaik.*/
|
2009-07-19 14:31:53 -04:00
|
|
|
|
2011-09-03 10:53:07 -04:00
|
|
|
/* This code is released under the libpng license.*/
|
|
|
|
/* For conditions of distribution and use, see the disclaimer*/
|
|
|
|
/* and license in png.h*/
|
2000-06-23 22:38:16 -04:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
void PngFileInitialize (HWND hwnd) ;
|
|
|
|
BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
|
|
|
|
BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
|
|
|
|
|
2013-03-02 15:58:22 -05:00
|
|
|
BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
|
2000-06-23 22:38:16 -04:00
|
|
|
int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
|
|
|
|
BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
|
|
|
|
int iWidth, int iHeight, png_color BkgColor);
|
|
|
|
|
2009-08-31 12:18:25 -04:00
|
|
|
#ifndef PNG_STDIO_SUPPORTED
|
2000-06-23 22:38:16 -04:00
|
|
|
static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length);
|
|
|
|
static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length);
|
|
|
|
static void png_flush(png_structp png_ptr);
|
|
|
|
#endif
|
|
|
|
|