]> Creatis software - clitk.git/blob - utilities/CxImage/ximaska.h
f2facc900fb5bcccbd78f973eb5082a8fe1629f0
[clitk.git] / utilities / CxImage / ximaska.h
1 /*\r
2  * File:        ximaska.h\r
3  * Purpose:     SKA Image Class Loader and Writer\r
4  */\r
5 /* ==========================================================\r
6  * CxImageSKA (c) 25/Sep/2007 Davide Pizzolato - www.xdp.it\r
7  * For conditions of distribution and use, see copyright notice in ximage.h\r
8  * ==========================================================\r
9  */\r
10 #if !defined(__ximaSKA_h)\r
11 #define __ximaSKA_h\r
12 \r
13 #include "ximage.h"\r
14 \r
15 #if CXIMAGE_SUPPORT_SKA\r
16 \r
17 class CxImageSKA: public CxImage\r
18 {\r
19 #pragma pack(1)\r
20         typedef struct tagSkaHeader {\r
21     unsigned short  Width;\r
22     unsigned short  Height;\r
23     BYTE  BppExp;\r
24     DWORD dwUnknown;\r
25 } SKAHEADER;\r
26 #pragma pack()\r
27 \r
28 public:\r
29         CxImageSKA(): CxImage(CXIMAGE_FORMAT_SKA) {}\r
30 \r
31 //      bool Load(const char * imageFileName){ return CxImage::Load(imageFileName,CXIMAGE_FORMAT_ICO);}\r
32 //      bool Save(const char * imageFileName){ return CxImage::Save(imageFileName,CXIMAGE_FORMAT_ICO);}\r
33         bool Decode(CxFile * hFile);\r
34         bool Decode(FILE *hFile) { CxIOFile file(hFile); return Decode(&file); }\r
35 \r
36 #if CXIMAGE_SUPPORT_ENCODE\r
37         bool Encode(CxFile * hFile);\r
38         bool Encode(FILE *hFile) { CxIOFile file(hFile); return Encode(&file); }\r
39 #endif // CXIMAGE_SUPPORT_ENCODE\r
40 };\r
41 \r
42 #endif\r
43 \r
44 #endif\r