mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
commit
d2b54f7989
2872 changed files with 670392 additions and 0 deletions
54
uppsrc/plugin/tif/tif.h
Normal file
54
uppsrc/plugin/tif/tif.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
#ifndef _plugin_tif_tif_h_
|
||||
#define _plugin_tif_tif_h_
|
||||
|
||||
#include <Draw/Draw.h>
|
||||
|
||||
|
||||
NAMESPACE_UPP
|
||||
|
||||
class TIFRaster : public StreamRaster {
|
||||
public:
|
||||
struct Data;
|
||||
One<Data> data;
|
||||
|
||||
public:
|
||||
TIFRaster();
|
||||
~TIFRaster();
|
||||
|
||||
virtual bool Create();
|
||||
virtual Size GetSize();
|
||||
virtual Info GetInfo();
|
||||
virtual Line GetLine(int line);
|
||||
virtual int GetPaletteCount();
|
||||
virtual const RGBA *GetPalette();
|
||||
virtual const RasterFormat *GetFormat();
|
||||
|
||||
virtual int GetPageCount();
|
||||
virtual void SeekPage(int n);
|
||||
|
||||
private:
|
||||
bool Init();
|
||||
};
|
||||
|
||||
class TIFEncoder : public StreamRasterEncoder {
|
||||
public:
|
||||
class Data;
|
||||
One<Data> data;
|
||||
|
||||
public:
|
||||
TIFEncoder(int bpp = 24);
|
||||
~TIFEncoder();
|
||||
|
||||
TIFEncoder& Bpp(int b) { bpp = b; return *this; }
|
||||
|
||||
virtual int GetPaletteCount();
|
||||
virtual void Start(Size sz);
|
||||
virtual void WriteLineRaw(const byte *s);
|
||||
|
||||
private:
|
||||
int bpp;
|
||||
};
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue