home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / include / wx / imagtiff.h < prev    next >
C/C++ Source or Header  |  2002-08-31  |  1KB  |  52 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        imagtiff.h
  3. // Purpose:     wxImage TIFF handler
  4. // Author:      Robert Roebling
  5. // RCS-ID:      $Id: imagtiff.h,v 1.5 2002/08/31 11:29:10 GD Exp $
  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(__APPLE__)
  14. #pragma interface "imagtiff.h"
  15. #endif
  16.  
  17. #include "wx/image.h"
  18.  
  19.  
  20. //-----------------------------------------------------------------------------
  21. // wxTIFFHandler
  22. //-----------------------------------------------------------------------------
  23.  
  24. #if wxUSE_LIBTIFF
  25. class WXDLLEXPORT wxTIFFHandler: public wxImageHandler
  26. {
  27.   DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
  28.  
  29. public:
  30.  
  31.   inline wxTIFFHandler()
  32.   {
  33.       m_name = "TIFF file";
  34.       m_extension = "tif";
  35.       m_type = wxBITMAP_TYPE_TIF;
  36.       m_mime = "image/tiff";
  37.   };
  38.  
  39. #if wxUSE_STREAMS
  40.   virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
  41.   virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
  42.   virtual bool DoCanRead( wxInputStream& stream );
  43.   virtual int GetImageCount( wxInputStream& stream );
  44. #endif
  45. };
  46. #endif
  47.  
  48.  
  49. #endif
  50.   // _WX_IMAGTIFF_H_
  51.  
  52.