3 * Purpose: WBMP Image Class Loader and Writer
\r
5 /* ==========================================================
\r
6 * CxImageWBMP (c) 12/Jul/2002 Davide Pizzolato - www.xdp.it
\r
7 * For conditions of distribution and use, see copyright notice in ximage.h
\r
8 * ==========================================================
\r
10 #if !defined(__ximaWBMP_h)
\r
11 #define __ximaWBMP_h
\r
15 #if CXIMAGE_SUPPORT_WBMP
\r
17 class CxImageWBMP: public CxImage
\r
20 typedef struct tagWbmpHeader
\r
23 BYTE FixHeader; // 0
\r
24 DWORD ImageWidth; // Image Width
\r
25 DWORD ImageHeight; // Image Height
\r
29 CxImageWBMP(): CxImage(CXIMAGE_FORMAT_WBMP) {}
\r
31 // bool Load(const TCHAR * imageFileName){ return CxImage::Load(imageFileName,CXIMAGE_FORMAT_WBMP);}
\r
32 // bool Save(const TCHAR * imageFileName){ return CxImage::Save(imageFileName,CXIMAGE_FORMAT_WBMP);}
\r
33 bool Decode(CxFile * hFile);
\r
34 bool Decode(FILE *hFile) { CxIOFile file(hFile); return Decode(&file); }
\r
36 bool ReadOctet(CxFile * hFile, DWORD *data);
\r
39 #if CXIMAGE_SUPPORT_ENCODE
\r
40 bool Encode(CxFile * hFile);
\r
41 bool Encode(FILE *hFile) { CxIOFile file(hFile); return Encode(&file); }
\r
43 bool WriteOctet(CxFile * hFile, const DWORD data);
\r
44 #endif // CXIMAGE_SUPPORT_ENCODE
\r