Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
PngFile.h
Go to the documentation of this file.
1 //------------------------------------------
2 // PNGFILE.H -- Header File for pngfile.c
3 //------------------------------------------
4 
5 // Copyright 2000, Willem van Schaik.
6 
7 // This code is released under the libpng license.
8 // For conditions of distribution and use, see the disclaimer
9 // and license in png.h
10 
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include <windows.h>
15 
16 void PngFileInitialize (HWND hwnd) ;
17 BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
18 BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
19 
20 BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
21  int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
22 BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
23  int iWidth, int iHeight, png_color BkgColor);
24 
25 #if defined(PNG_NO_STDIO)
28 static void png_flush(png_structp png_ptr);
29 #endif
30 
GLenum GLuint GLenum GLsizei length
void PngFileInitialize(HWND hwnd)
Definition: PngFile.c:48
BOOL PngSaveImage(PTSTR pstrFileName, png_byte *pDiData, int iWidth, int iHeight, png_color BkgColor)
Definition: PngFile.c:287
BOOL PngLoadImage(PTSTR pstrFileName, png_byte **ppbImageData, int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor)
Definition: PngFile.c:97
BOOL PngFileSaveDlg(HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName)
Definition: PngFile.c:85
png_byte FAR * png_bytep
Definition: pngconf.h:1328
void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
Definition: pngwio.c:34
#define BOOL
Definition: png2pnm.c:23
void png_flush(png_structp png_ptr)
Definition: pngwio.c:135
png_struct FAR * png_structp
Definition: png.h:973
unsigned char png_byte
Definition: pngconf.h:1251
GLsizei GLsizei GLenum GLenum const GLvoid * data
BOOL PngFileOpenDlg(HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName)
Definition: PngFile.c:75
void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
Definition: pngrio.c:33
size_t png_size_t
Definition: pngconf.h:1259