1 /////////////////////////////////////////////////////////////////////////////////
3 // $Id: png.h,v 1.2 2003/08/03 16:56:29 nedko Exp $
9 /////////////////////////////////////////////////////////////////////////////////
11 #ifndef PNG_H__76DD7C22_846A_4AE0_B01C_813DBDADE3C4__INCLUDED
12 #define PNG_H__76DD7C22_846A_4AE0_B01C_813DBDADE3C4__INCLUDED
20 bool LoadPNGImage(const char *pszPath
);
21 unsigned int GetWidth();
22 unsigned int GetHeight();
23 HBITMAP
CreateBitmap(HDC hMemoryDC
);
25 static void PNGAPI PNG_ErrorHandler
PNGARG((png_structp s
, png_const_charp str
));
26 static void PremultiplyAlpha(unsigned int nWidth
, unsigned int nHeight
, unsigned char *pData
);
27 static unsigned char * GenerateNotLoadedBitmapData(unsigned int nWidth
, unsigned int nHeight
);
30 unsigned int m_nWidth
;
31 unsigned int m_nHeight
;
32 unsigned char *m_pData
;
35 extern CPNGImage g_Image
;
37 #endif // #ifndef PNG_H__76DD7C22_846A_4AE0_B01C_813DBDADE3C4__INCLUDED
39 /////////////////////////////////////////////////////////////////////////////////
43 // !!! WARNING !!! Following lines are automatically updated by the CVS system.
46 // Revision 1.2 2003/08/03 16:56:29 nedko
49 // Revision 1.1 2002/06/29 15:03:33 nedko
50 // *** empty log message ***
52 /////////////////////////////////////////////////////////////////////////////////