ultimatepp/uppsrc/plugin/pcx/pcx.h
cxl 8ebdcbb0d5 uppsrc: NAMESPACE_UPP / END_UPP_NAMESPACE removed
git-svn-id: svn://ultimatepp.org/upp/trunk@10186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-08-26 17:15:30 +00:00

33 lines
671 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();
};
}
#endif