Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
958 | leency | 1 | #pragma pack(push, 1) |
2 | typedef struct PCXHeader |
||
3 | { |
||
4 | Byte bManufacturer; |
||
5 | Byte bVersion; |
||
6 | Byte bEncoding; |
||
7 | Byte bBPP; |
||
8 | Word dwX; |
||
9 | Word dwY; |
||
10 | Word dwWidth; |
||
11 | Word dwHeight; |
||
12 | Word dwHRes; |
||
13 | Word dwVRes; |
||
14 | Byte colormap[48]; |
||
15 | Byte bReserved; |
||
16 | Byte bNPlanes; |
||
17 | Word iBPL; |
||
18 | Word iPalInfo; |
||
19 | } PCXHeader; |
||
20 | #pragma pack(pop) |
||
21 | |||
22 | class PCXFile |
||
23 | { |
||
24 | protected: |
||
25 | PCXHeader Pcx_head; |
||
26 | public: |
||
27 | Word width; |
||
28 | Word height; |
||
29 | Byte* buffer; |
||
30 | int LoadPCXFile(Byte* filebuff, Dword filesize); |
||
31 | }; |