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]
Functions
PngFile.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>

Go to the source code of this file.

Functions

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)
 

Function Documentation

◆ PngFileInitialize()

void PngFileInitialize ( HWND  hwnd)

Definition at line 48 of file PngFile.c.

Referenced by WndProc().

◆ PngFileOpenDlg()

BOOL PngFileOpenDlg ( HWND  hwnd,
PTSTR  pstrFileName,
PTSTR  pstrTitleName 
)

Definition at line 75 of file PngFile.c.

◆ PngFileSaveDlg()

BOOL PngFileSaveDlg ( HWND  hwnd,
PTSTR  pstrFileName,
PTSTR  pstrTitleName 
)

Definition at line 85 of file PngFile.c.

◆ PngLoadImage()

BOOL PngLoadImage ( PTSTR  pstrFileName,
png_byte **  ppbImageData,
int piWidth,
int piHeight,
int piChannels,
png_color pBkgColor 
)

Definition at line 97 of file PngFile.c.

References FALSE, i, NULL, and png_sig_cmp().

Referenced by LoadImageFile().

◆ PngSaveImage()

BOOL PngSaveImage ( PTSTR  pstrFileName,
png_byte pDiData,
int  iWidth,
int  iHeight,
png_color  BkgColor 
)

Definition at line 287 of file PngFile.c.

References FALSE, i, and NULL.