source: liacs/MIR2010/SourceCode/cximage/ximawbmp.h@ 397

Last change on this file since 397 was 95, checked in by Rick van der Zwet, 15 years ago

Bad boy, improper move of directory

File size: 1.4 KB
Line 
1/*
2 * File: ximawbmp.h
3 * Purpose: WBMP Image Class Loader and Writer
4 */
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 * ==========================================================
9 */
10#if !defined(__ximaWBMP_h)
11#define __ximaWBMP_h
12
13#include "ximage.h"
14
15#if CXIMAGE_SUPPORT_WBMP
16
17class CxImageWBMP: public CxImage
18{
19#pragma pack(1)
20typedef struct tagWbmpHeader
21{
22 DWORD Type; // 0
23 BYTE FixHeader; // 0
24 DWORD ImageWidth; // Image Width
25 DWORD ImageHeight; // Image Height
26} WBMPHEADER;
27#pragma pack()
28public:
29 CxImageWBMP(): CxImage(CXIMAGE_FORMAT_WBMP) {}
30
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); }
35protected:
36 bool ReadOctet(CxFile * hFile, DWORD *data);
37
38public:
39#if CXIMAGE_SUPPORT_ENCODE
40 bool Encode(CxFile * hFile);
41 bool Encode(FILE *hFile) { CxIOFile file(hFile); return Encode(&file); }
42protected:
43 bool WriteOctet(CxFile * hFile, const DWORD data);
44#endif // CXIMAGE_SUPPORT_ENCODE
45};
46
47#endif
48
49#endif
Note: See TracBrowser for help on using the repository browser.