]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/imagtiff.h
added wxSashEventFunction macro
[wxWidgets.git] / include / wx / imagtiff.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: imagtiff.h
3// Purpose: wxImage TIFF handler
4// Author: Robert Roebling
5// RCS-ID: $Id$
6// Copyright: (c) Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_IMAGTIFF_H_
11#define _WX_IMAGTIFF_H_
12
13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
14#pragma interface "imagtiff.h"
15#endif
16
17#include "wx/defs.h"
18
19//-----------------------------------------------------------------------------
20// wxTIFFHandler
21//-----------------------------------------------------------------------------
22
23#if wxUSE_LIBTIFF
24
25#include "wx/image.h"
26
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"))
32
33class WXDLLEXPORT wxTIFFHandler: public wxImageHandler
34{
35public:
36 wxTIFFHandler();
37
38#if wxUSE_STREAMS
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 );
41 virtual bool DoCanRead( wxInputStream& stream );
42 virtual int GetImageCount( wxInputStream& stream );
43#endif
44
45private:
46 DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
47};
48
49#endif // wxUSE_LIBTIFF
50
51#endif // _WX_IMAGTIFF_H_
52