#include "BIPNG.H"
BOOL CALLBACK SaveBitmapInPNGFormat( LPTSTR lpszFileName,
HBITMAP hBitmap,
LPINT lpiError,
POINT *pDPI,
HPALETTE phPal)
Description
Saves the bitmap in the PNG file lpszFileName. Does all low level calls internally in the DLL. To retrieve the last error, use the GetPNGMsg(...).
Parameters
|
LPTSTR |
lpszFileName |
Pointer to a null-terminated character string that names the PNG file path to be opened. |
|
HBITMAP |
hBitmap |
Bitmap to be saved. |
|
LPINT |
lpiError |
Error code if return value is FALSE. |
|
POINT |
*pDPI; |
Pointer to the image dot per inch resolution. |
|
HPALETTE |
phPal; |
Pointer to the image palette handle. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
TRUE on success. On error it is FALSE and lpiError is set.
Programming note
None.
Requirements
Header : Declared in BiPNG.h; include BiPNG.h.
Library : Use BiPNG.lib.
DLLs : BiPNG.dll.
Code example
None at present.