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 | Variables
PngFile.c File Reference
#include <windows.h>
#include <commdlg.h>
#include <stdio.h>
#include <stdlib.h>
#include "png.h"
#include "pngfile.h"
#include "cexcept.h"

Go to the source code of this file.

Functions

 define_exception_type (const char *)
 
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)
 

Variables

struct exception_context the_exception_context [1]
 
png_const_charp msg
 

Function Documentation

◆ define_exception_type()

define_exception_type ( const char *  )

◆ 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.

Variable Documentation

◆ msg

◆ the_exception_context

struct exception_context the_exception_context

Definition at line 22 of file PngFile.c.