kolibrios/programs/other/outdated/imgview/formats/pcx.h
Kirill Lipatov (Leency) 0b5dbe568e move programs to /other/outdated folder: copy2, imgview, mv, dictionary
upload correct mfar sources

git-svn-id: svn://kolibrios.org@7649 a494cfbc-eb01-0410-851d-a64ba20cac60
2019-05-12 08:52:09 +00:00

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);
};