2002-01-17 19:40:18 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: imagiff.h
|
|
|
|
// Purpose: wxImage handler for Amiga IFF images
|
|
|
|
// Author: Steffen Gutmann
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Steffen Gutmann, 2002
|
2004-05-23 14:56:36 +00:00
|
|
|
// Licence: wxWidgets licence
|
2002-01-17 19:40:18 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_IMAGE_IFF_H_
|
|
|
|
#define _WX_IMAGE_IFF_H_
|
2002-01-15 17:57:08 +00:00
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2002-01-15 17:57:08 +00:00
|
|
|
#pragma interface "imagiff.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/image.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxIFFHandler
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2002-01-17 19:40:18 +00:00
|
|
|
#if wxUSE_IMAGE && wxUSE_IFF
|
2002-01-15 17:57:08 +00:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxIFFHandler : public wxImageHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxIFFHandler()
|
|
|
|
{
|
2002-01-17 19:40:18 +00:00
|
|
|
m_name = wxT("IFF file");
|
|
|
|
m_extension = wxT("iff");
|
|
|
|
m_type = wxBITMAP_TYPE_IFF;
|
|
|
|
m_mime = wxT("image/x-iff");
|
2002-12-04 14:11:26 +00:00
|
|
|
}
|
2002-01-15 17:57:08 +00:00
|
|
|
|
|
|
|
#if wxUSE_STREAMS
|
2002-01-17 19:40:18 +00:00
|
|
|
virtual bool LoadFile(wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1);
|
|
|
|
virtual bool SaveFile(wxImage *image, wxOutputStream& stream, bool verbose=TRUE);
|
2002-01-15 17:57:08 +00:00
|
|
|
virtual bool DoCanRead(wxInputStream& stream);
|
|
|
|
#endif
|
2002-12-04 14:11:26 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxIFFHandler)
|
2002-01-15 17:57:08 +00:00
|
|
|
};
|
|
|
|
|
2002-01-17 19:40:18 +00:00
|
|
|
#endif // wxUSE_IMAGE && wxUSE_IFF
|
2002-01-15 17:57:08 +00:00
|
|
|
|
2002-01-17 19:40:18 +00:00
|
|
|
#endif // _WX_IMAGE_IFF_H_
|