3 * Purpose: Declaration of the MNG Image Class
\r
4 * Author: Davide Pizzolato - www.xdp.it
\r
7 /* ==========================================================
\r
8 * CxImageMNG (c) 07/Aug/2001 Davide Pizzolato - www.xdp.it
\r
9 * For conditions of distribution and use, see copyright notice in ximage.h
\r
11 * Special thanks to Frank Haug <f.haug(at)jdm(dot)de> for suggestions and code.
\r
13 * original mng.cpp code created by Nikolaus Brennig, November 14th, 2000. <virtualnik(at)nol(dot)at>
\r
15 * LIBMNG Copyright (c) 2000,2001 Gerard Juyn (gerard@libmng.com)
\r
16 * ==========================================================
\r
19 #if !defined(__ximaMNG_h)
\r
24 #if CXIMAGE_SUPPORT_MNG
\r
26 //#define MNG_NO_CMS
\r
27 #define MNG_SUPPORT_DISPLAY
\r
28 #define MNG_SUPPORT_READ
\r
29 #define MNG_SUPPORT_WRITE
\r
30 #define MNG_ACCESS_CHUNKS
\r
31 #define MNG_STORE_CHUNKS
\r
34 #include "../mng/libmng.h"
\r
35 #include "../mng/libmng_data.h"
\r
36 #include "../mng/libmng_error.h"
\r
39 //unsigned long _stdcall RunMNGThread(void *lpParam);
\r
41 typedef struct tagmngstuff
\r
53 mng_bool animation_enabled;
\r
56 RGBQUAD nBkgndColor;
\r
59 class CxImageMNG: public CxImage
\r
65 bool Load(const TCHAR * imageFileName);
\r
67 bool Decode(CxFile * hFile);
\r
68 bool Decode(FILE *hFile) { CxIOFile file(hFile); return Decode(&file); }
\r
70 #if CXIMAGE_SUPPORT_ENCODE
\r
71 bool Encode(CxFile * hFile);
\r
72 bool Encode(FILE *hFile) { CxIOFile file(hFile); return Encode(&file); }
\r
73 bool Save(const TCHAR * imageFileName){ return CxImage::Save(imageFileName,CXIMAGE_FORMAT_MNG);}
\r
74 #endif // CXIMAGE_SUPPORT_ENCODE
\r
77 void SetSpeed(float speed);
\r
82 void WritePNG(mng_handle hMNG, int Frame, int FrameCount );
\r
83 void SetCallbacks(mng_handle mng);
\r