Mercurial > fife-parpg
view ext/libpng-1.2.29/contrib/visupng/PngFile.h @ 330:33dd55160a9d
* Added a new method Widget.getNamedChildren
* Made the distribute and mapEvents methods (a whole lot) faster.
* Added a new (internal) attribute to Widget (has_name)
* Added a small decorator for profiling rarely called functions.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 24 Aug 2009 11:45:28 +0000 |
parents | 4a0efb7baf70 |
children |
line wrap: on
line source
//------------------------------------------ // 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> 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); #if defined(PNG_NO_STDIO) 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