ultimatepp/uppsrc/plugin/ppm/ppm.h
cxl 6454c3347f plugin/ppm: Fixed header guard #define
git-svn-id: svn://ultimatepp.org/upp/trunk@10729 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-01-18 07:04:39 +00:00

38 lines
729 B
C++

#ifndef _plugin_ppm_ppm_h_
#define _plugin_ppm_ppm_h_
#include <Draw/Draw.h>
namespace Upp {
class PPMRaster : public StreamRaster {
Size size;
bool is16;
RasterFormat fmt;
int64 pixel_pos;
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();
PPMRaster();
~PPMRaster();
};
class PPMEncoder : public StreamRasterEncoder {
Size size;
public:
virtual int GetPaletteCount();
virtual void Start(Size sz);
virtual void WriteLineRaw(const byte *data);
};
}
#endif