1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImage TIFF handler
4 // Author: Robert Roebling
5 // Copyright: (c) Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_IMAGTIFF_H_
10 #define _WX_IMAGTIFF_H_
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
21 #include "wx/versioninfo.h"
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"))
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
36 class WXDLLIMPEXP_CORE wxTIFFHandler
: public wxImageHandler
41 static wxVersionInfo
GetLibraryVersionInfo();
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 );
48 virtual int DoGetImageCount( wxInputStream
& stream
);
49 virtual bool DoCanRead( wxInputStream
& stream
);
53 DECLARE_DYNAMIC_CLASS(wxTIFFHandler
)
56 #endif // wxUSE_LIBTIFF
58 #endif // _WX_IMAGTIFF_H_