|
fukasawa |
e60969 |
/*------------------------------------------*/
|
|
fukasawa |
e60969 |
/* PNGFILE.H -- Header File for pngfile.c*/
|
|
fukasawa |
e60969 |
/*------------------------------------------*/
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
/* Copyright 2000, Willem van Schaik.*/
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
/* This code is released under the libpng license.*/
|
|
fukasawa |
e60969 |
/* For conditions of distribution and use, see the disclaimer*/
|
|
fukasawa |
e60969 |
/* and license in png.h*/
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#include <stdio.h></stdio.h>
|
|
fukasawa |
e60969 |
#include <stdlib.h></stdlib.h>
|
|
fukasawa |
e60969 |
#include <string.h></string.h>
|
|
fukasawa |
e60969 |
#include <windows.h></windows.h>
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
void PngFileInitialize (HWND hwnd) ;
|
|
fukasawa |
e60969 |
BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
|
|
fukasawa |
e60969 |
BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
|
|
fukasawa |
e60969 |
int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
|
|
fukasawa |
e60969 |
BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
|
|
fukasawa |
e60969 |
int iWidth, int iHeight, png_color BkgColor);
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#ifndef PNG_STDIO_SUPPORTED
|
|
fukasawa |
e60969 |
static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length);
|
|
fukasawa |
e60969 |
static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length);
|
|
fukasawa |
e60969 |
static void png_flush(png_structp png_ptr);
|
|
fukasawa |
e60969 |
#endif
|
|
fukasawa |
e60969 |
|