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 // defines for wxImage::SetOption
20 #define wxIMAGE_OPTION_BITSPERSAMPLE wxString(_T("BitsPerSample"))
21 #define wxIMAGE_OPTION_SAMPLESPERPIXEL wxString(_T("SamplesPerPixel"))
22 #define wxIMAGE_OPTION_COMPRESSION wxString(_T("Compression"))
23 #define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxString(_T("ImageDescriptor"))
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
30 class WXDLLEXPORT wxTIFFHandler
: public wxImageHandler
36 virtual bool LoadFile( wxImage
*image
, wxInputStream
& stream
, bool verbose
=true, int index
=-1 );
37 virtual bool SaveFile( wxImage
*image
, wxOutputStream
& stream
, bool verbose
=true );
38 virtual bool DoCanRead( wxInputStream
& stream
);
39 virtual int GetImageCount( wxInputStream
& stream
);
43 DECLARE_DYNAMIC_CLASS(wxTIFFHandler
)