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