diff options
author | Aki <please@ignore.pl> | 2021-09-29 21:56:06 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-09-29 21:56:06 +0200 |
commit | 740dcb396658606b435d42203e729de96e1814ad (patch) | |
tree | b8446f1320d5836cc258b873cec378d6f735829e /libpng/contrib/visupng/PngFile.h | |
parent | c5337fbb15c93d63739abbef259e8cc8db117877 (diff) | |
parent | 32d5cbb90bcca185eb2f96307f1fc644c612178d (diff) | |
download | starshatter-740dcb396658606b435d42203e729de96e1814ad.zip starshatter-740dcb396658606b435d42203e729de96e1814ad.tar.gz starshatter-740dcb396658606b435d42203e729de96e1814ad.tar.bz2 |
Merge commit '32d5cbb90bcca185eb2f96307f1fc644c612178d' as 'libpng'
Diffstat (limited to 'libpng/contrib/visupng/PngFile.h')
-rw-r--r-- | libpng/contrib/visupng/PngFile.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libpng/contrib/visupng/PngFile.h b/libpng/contrib/visupng/PngFile.h new file mode 100644 index 0000000..dc6bbb4 --- /dev/null +++ b/libpng/contrib/visupng/PngFile.h @@ -0,0 +1,30 @@ +//------------------------------------------ +// PNGFILE.H -- Header File for pngfile.c +//------------------------------------------ + +// Copyright 2000, Willem van Schaik. + +// This code is released under the libpng license. +// For conditions of distribution and use, see the disclaimer +// and license in png.h + +#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) ; + +BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData, + int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor); +BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData, + int iWidth, int iHeight, png_color BkgColor); + +#ifndef PNG_STDIO_SUPPORTED +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 + |