mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
33 lines
685 B
C++
33 lines
685 B
C++
#ifndef _plugin_pcx_pcx_h_
|
|
#define _plugin_pcx_pcx_h_
|
|
|
|
#include <Draw/Draw.h>
|
|
|
|
NAMESPACE_UPP
|
|
|
|
#include "pcxhdr.h"
|
|
|
|
class PCXRaster : public StreamRaster {
|
|
PCXHeader header;
|
|
Size size;
|
|
int row_bytes;
|
|
Buffer<RGBA> palette;
|
|
Buffer<byte> scanline;
|
|
Buffer<byte> buffer;
|
|
RasterFormat fmt;
|
|
Raster::Info info;
|
|
One<ImageRaster> rle;
|
|
|
|
public:
|
|
virtual bool Create();
|
|
virtual Info GetInfo();
|
|
virtual Size GetSize();
|
|
virtual Line GetLine(int line);
|
|
virtual int GetPaletteCount();
|
|
virtual RGBA *GetPalette();
|
|
virtual const RasterFormat *GetFormat();
|
|
};
|
|
|
|
END_UPP_NAMESPACE
|
|
|
|
#endif
|