mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-19 05:12:45 +03:00
aef7c5284b
git-svn-id: svn://kolibrios.org@958 a494cfbc-eb01-0410-851d-a64ba20cac60
31 lines
545 B
C++
31 lines
545 B
C++
#pragma pack(push, 1)
|
|
typedef struct PCXHeader
|
|
{
|
|
Byte bManufacturer;
|
|
Byte bVersion;
|
|
Byte bEncoding;
|
|
Byte bBPP;
|
|
Word dwX;
|
|
Word dwY;
|
|
Word dwWidth;
|
|
Word dwHeight;
|
|
Word dwHRes;
|
|
Word dwVRes;
|
|
Byte colormap[48];
|
|
Byte bReserved;
|
|
Byte bNPlanes;
|
|
Word iBPL;
|
|
Word iPalInfo;
|
|
} PCXHeader;
|
|
#pragma pack(pop)
|
|
|
|
class PCXFile
|
|
{
|
|
protected:
|
|
PCXHeader Pcx_head;
|
|
public:
|
|
Word width;
|
|
Word height;
|
|
Byte* buffer;
|
|
int LoadPCXFile(Byte* filebuff, Dword filesize);
|
|
}; |