Last change
on this file since 207 was 95, checked in by Rick van der Zwet, 15 years ago |
Bad boy, improper move of directory
|
File size:
1.2 KB
|
Rev | Line | |
---|
[95] | 1 | /*
|
---|
| 2 | * File: ximaska.h
|
---|
| 3 | * Purpose: SKA Image Class Loader and Writer
|
---|
| 4 | */
|
---|
| 5 | /* ==========================================================
|
---|
| 6 | * CxImageSKA (c) 25/Sep/2007 Davide Pizzolato - www.xdp.it
|
---|
| 7 | * For conditions of distribution and use, see copyright notice in ximage.h
|
---|
| 8 | * ==========================================================
|
---|
| 9 | */
|
---|
| 10 | #if !defined(__ximaSKA_h)
|
---|
| 11 | #define __ximaSKA_h
|
---|
| 12 |
|
---|
| 13 | #include "ximage.h"
|
---|
| 14 |
|
---|
| 15 | #if CXIMAGE_SUPPORT_SKA
|
---|
| 16 |
|
---|
| 17 | class CxImageSKA: public CxImage
|
---|
| 18 | {
|
---|
| 19 | #pragma pack(1)
|
---|
| 20 | typedef struct tagSkaHeader {
|
---|
| 21 | unsigned short Width;
|
---|
| 22 | unsigned short Height;
|
---|
| 23 | BYTE BppExp;
|
---|
| 24 | DWORD dwUnknown;
|
---|
| 25 | } SKAHEADER;
|
---|
| 26 | #pragma pack()
|
---|
| 27 |
|
---|
| 28 | public:
|
---|
| 29 | CxImageSKA(): CxImage(CXIMAGE_FORMAT_SKA) {}
|
---|
| 30 |
|
---|
| 31 | // bool Load(const char * imageFileName){ return CxImage::Load(imageFileName,CXIMAGE_FORMAT_ICO);}
|
---|
| 32 | // bool Save(const char * imageFileName){ return CxImage::Save(imageFileName,CXIMAGE_FORMAT_ICO);}
|
---|
| 33 | bool Decode(CxFile * hFile);
|
---|
| 34 | bool Decode(FILE *hFile) { CxIOFile file(hFile); return Decode(&file); }
|
---|
| 35 |
|
---|
| 36 | #if CXIMAGE_SUPPORT_ENCODE
|
---|
| 37 | bool Encode(CxFile * hFile);
|
---|
| 38 | bool Encode(FILE *hFile) { CxIOFile file(hFile); return Encode(&file); }
|
---|
| 39 | #endif // CXIMAGE_SUPPORT_ENCODE
|
---|
| 40 | };
|
---|
| 41 |
|
---|
| 42 | #endif
|
---|
| 43 |
|
---|
| 44 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.