--- /dev/null
+/*\r
+ * File: ximawbmp.h\r
+ * Purpose: WBMP Image Class Loader and Writer\r
+ */\r
+/* ==========================================================\r
+ * CxImageWBMP (c) 12/Jul/2002 Davide Pizzolato - www.xdp.it\r
+ * For conditions of distribution and use, see copyright notice in ximage.h\r
+ * ==========================================================\r
+ */\r
+#if !defined(__ximaWBMP_h)\r
+#define __ximaWBMP_h\r
+\r
+#include "ximage.h"\r
+\r
+#if CXIMAGE_SUPPORT_WBMP\r
+\r
+class CxImageWBMP: public CxImage\r
+{\r
+#pragma pack(1)\r
+typedef struct tagWbmpHeader\r
+{\r
+ DWORD Type; // 0\r
+ BYTE FixHeader; // 0\r
+ DWORD ImageWidth; // Image Width\r
+ DWORD ImageHeight; // Image Height\r
+} WBMPHEADER;\r
+#pragma pack()\r
+public:\r
+ CxImageWBMP(): CxImage(CXIMAGE_FORMAT_WBMP) {}\r
+\r
+// bool Load(const TCHAR * imageFileName){ return CxImage::Load(imageFileName,CXIMAGE_FORMAT_WBMP);}\r
+// bool Save(const TCHAR * imageFileName){ return CxImage::Save(imageFileName,CXIMAGE_FORMAT_WBMP);}\r
+ bool Decode(CxFile * hFile);\r
+ bool Decode(FILE *hFile) { CxIOFile file(hFile); return Decode(&file); }\r
+protected:\r
+ bool ReadOctet(CxFile * hFile, DWORD *data);\r
+\r
+public:\r
+#if CXIMAGE_SUPPORT_ENCODE\r
+ bool Encode(CxFile * hFile);\r
+ bool Encode(FILE *hFile) { CxIOFile file(hFile); return Encode(&file); }\r
+protected:\r
+ bool WriteOctet(CxFile * hFile, const DWORD data);\r
+#endif // CXIMAGE_SUPPORT_ENCODE\r
+};\r
+\r
+#endif\r
+\r
+#endif\r