1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImage TIFF handler
4 // Author: Robert Roebling
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_IMAGTIFF_H_
11 #define _WX_IMAGTIFF_H_
13 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
14 #pragma interface "imagtiff.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
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"))
33 class WXDLLEXPORT wxTIFFHandler
: public wxImageHandler
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
);
46 DECLARE_DYNAMIC_CLASS(wxTIFFHandler
)
49 #endif // wxUSE_LIBTIFF
51 #endif // _WX_IMAGTIFF_H_