3 * Purpose: SKA Image Class Loader and Writer
\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
10 #if !defined(__ximaSKA_h)
\r
15 #if CXIMAGE_SUPPORT_SKA
\r
17 class CxImageSKA: public CxImage
\r
20 typedef struct tagSkaHeader {
\r
21 unsigned short Width;
\r
22 unsigned short Height;
\r
29 CxImageSKA(): CxImage(CXIMAGE_FORMAT_SKA) {}
\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
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