]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagtiff.h
wxLaunchDefaultBrowser
[wxWidgets.git] / include / wx / imagtiff.h
CommitLineData
8f493002
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: imagtiff.h
3// Purpose: wxImage TIFF handler
4// Author: Robert Roebling
5// RCS-ID: $Id$
6// Copyright: (c) Robert Roebling
65571936 7// Licence: wxWindows licence
8f493002
VS
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_IMAGTIFF_H_
11#define _WX_IMAGTIFF_H_
12
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
8f493002
VS
14#pragma interface "imagtiff.h"
15#endif
16
2ecf902b
WS
17#include "wx/defs.h"
18
19//-----------------------------------------------------------------------------
20// wxTIFFHandler
21//-----------------------------------------------------------------------------
22
23#if wxUSE_LIBTIFF
24
8f493002
VS
25#include "wx/image.h"
26
fe9308c6
VZ
27// defines for wxImage::SetOption
28#define wxIMAGE_OPTION_BITSPERSAMPLE wxString(_T("BitsPerSample"))
29#define wxIMAGE_OPTION_SAMPLESPERPIXEL wxString(_T("SamplesPerPixel"))
30#define wxIMAGE_OPTION_COMPRESSION wxString(_T("Compression"))
31#define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxString(_T("ImageDescriptor"))
8f493002 32
8f493002
VS
33class WXDLLEXPORT wxTIFFHandler: public wxImageHandler
34{
8f493002 35public:
0fc7f695 36 wxTIFFHandler();
8f493002
VS
37
38#if wxUSE_STREAMS
7beb59f3
WS
39 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
40 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
2b5f62a0
VZ
41 virtual bool DoCanRead( wxInputStream& stream );
42 virtual int GetImageCount( wxInputStream& stream );
8f493002 43#endif
2b5f62a0
VZ
44
45private:
46 DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
8f493002 47};
8f493002 48
2ecf902b 49#endif // wxUSE_LIBTIFF
8f493002 50
2ecf902b 51#endif // _WX_IMAGTIFF_H_
8f493002 52