PngFile.h 1.1 KB
Newer Older
1 2 3
/*------------------------------------------*/
/*  PNGFILE.H -- Header File for pngfile.c*/
/*------------------------------------------*/
4

5
/* Copyright 2000, Willem van Schaik.*/
6

7 8 9
/* This code is released under the libpng license.*/
/* For conditions of distribution and use, see the disclaimer*/
/* and license in png.h*/
10 11 12 13 14 15 16 17 18 19

#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) ;

20
BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
21 22 23 24
                   int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
                   int iWidth, int iHeight, png_color BkgColor);

25
#ifndef PNG_STDIO_SUPPORTED
26 27
static void png_read_data(png_structp png_ptr, png_bytep data, size_t length);
static void png_write_data(png_structp png_ptr, png_bytep data, size_t length);
28 29 30
static void png_flush(png_structp png_ptr);
#endif