]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/imagtiff.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / imagtiff.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/imagtiff.h
3// Purpose: wxImage TIFF handler
4// Author: Robert Roebling
5// Copyright: (c) Robert Roebling
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_IMAGTIFF_H_
10#define _WX_IMAGTIFF_H_
11
12#include "wx/defs.h"
13
14//-----------------------------------------------------------------------------
15// wxTIFFHandler
16//-----------------------------------------------------------------------------
17
18#if wxUSE_LIBTIFF
19
20#include "wx/image.h"
21#include "wx/versioninfo.h"
22
23// defines for wxImage::SetOption
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"))
27#define wxIMAGE_OPTION_TIFF_PHOTOMETRIC wxString(wxT("Photometric"))
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
35
36class WXDLLIMPEXP_CORE wxTIFFHandler: public wxImageHandler
37{
38public:
39 wxTIFFHandler();
40
41 static wxVersionInfo GetLibraryVersionInfo();
42
43#if wxUSE_STREAMS
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 );
46
47protected:
48 virtual int DoGetImageCount( wxInputStream& stream );
49 virtual bool DoCanRead( wxInputStream& stream );
50#endif
51
52private:
53 DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
54};
55
56#endif // wxUSE_LIBTIFF
57
58#endif // _WX_IMAGTIFF_H_
59