#include "BIPNG.H"
HBITMAP CALLBACK LoadPNGIntoBitmap( LPTSTR lpszFileName,
LPINT lpiError,
POINT *pDPI,
HPALETTE *phPal)
Description
LoadPNGIntoBitmap() loads the specified PNG file into a device dependent bitmap.
Parameters
|
LPTSTR |
lpszFileName; |
Pointer to a null-terminated character string that names the PNG file path to be pened. |
|
LPINT |
lpiError; |
Error value if NULL is returned by the function. |
|
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
Handle of the bitmap. On error it is NULL and lpiError is set.
Programming notes
None.
Requirements
Header : Declared in BiPNG.h; include BiPNG.h.
Library : Use BiPNG.lib.
DLLs : BiPNG.dll.
Code example
None at present.