]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagtiff.h
Use wxGetTranslation() instead of _() in the public headers.
[wxWidgets.git] / include / wx / imagtiff.h
CommitLineData
8f493002 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/imagtiff.h
8f493002
VS
3// Purpose: wxImage TIFF handler
4// Author: Robert Roebling
8f493002 5// Copyright: (c) Robert Roebling
65571936 6// Licence: wxWindows licence
8f493002
VS
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_IMAGTIFF_H_
10#define _WX_IMAGTIFF_H_
11
2ecf902b
WS
12#include "wx/defs.h"
13
14//-----------------------------------------------------------------------------
15// wxTIFFHandler
16//-----------------------------------------------------------------------------
17
18#if wxUSE_LIBTIFF
19
8f493002 20#include "wx/image.h"
ccec9093 21#include "wx/versioninfo.h"
8f493002 22
fe9308c6 23// defines for wxImage::SetOption
d65172db
DS
24#define wxIMAGE_OPTION_TIFF_BITSPERSAMPLE wxString(wxT("BitsPerSample"))
25#define wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL wxString(wxT("SamplesPerPixel"))
26#define wxIMAGE_OPTION_TIFF_COMPRESSION wxString(wxT("Compression"))
fc695138 27#define wxIMAGE_OPTION_TIFF_PHOTOMETRIC wxString(wxT("Photometric"))
d65172db
DS
28#define wxIMAGE_OPTION_TIFF_IMAGEDESCRIPTOR wxString(wxT("ImageDescriptor"))
29
30// for backwards compatibility
31#define wxIMAGE_OPTION_BITSPERSAMPLE wxIMAGE_OPTION_TIFF_BITSPERSAMPLE
32#define wxIMAGE_OPTION_SAMPLESPERPIXEL wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL
33#define wxIMAGE_OPTION_COMPRESSION wxIMAGE_OPTION_TIFF_COMPRESSION
34#define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxIMAGE_OPTION_TIFF_IMAGEDESCRIPTOR
8f493002 35
53a2db12 36class WXDLLIMPEXP_CORE wxTIFFHandler: public wxImageHandler
8f493002 37{
8f493002 38public:
0fc7f695 39 wxTIFFHandler();
8f493002 40
ccec9093
VZ
41 static wxVersionInfo GetLibraryVersionInfo();
42
8f493002 43#if wxUSE_STREAMS
7beb59f3
WS
44 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
45 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
8faef7cc 46
6f02a879 47protected:
8faef7cc 48 virtual int DoGetImageCount( wxInputStream& stream );
6f02a879 49 virtual bool DoCanRead( wxInputStream& stream );
8f493002 50#endif
2b5f62a0
VZ
51
52private:
53 DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
8f493002 54};
8f493002 55
2ecf902b 56#endif // wxUSE_LIBTIFF
8f493002 57
2ecf902b 58#endif // _WX_IMAGTIFF_H_
8f493002 59