2002-01-17 14:40:18 -05: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 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-01-17 14:40:18 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_IMAGE_IFF_H_
|
|
|
|
#define _WX_IMAGE_IFF_H_
|
2002-01-15 12:57:08 -05:00
|
|
|
|
|
|
|
#include "wx/image.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxIFFHandler
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2002-01-17 14:40:18 -05:00
|
|
|
#if wxUSE_IMAGE && wxUSE_IFF
|
2002-01-15 12:57:08 -05:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxIFFHandler : public wxImageHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxIFFHandler()
|
|
|
|
{
|
2002-01-17 14:40:18 -05:00
|
|
|
m_name = wxT("IFF file");
|
|
|
|
m_extension = wxT("iff");
|
|
|
|
m_type = wxBITMAP_TYPE_IFF;
|
|
|
|
m_mime = wxT("image/x-iff");
|
2002-12-04 09:11:26 -05:00
|
|
|
}
|
2002-01-15 12:57:08 -05:00
|
|
|
|
|
|
|
#if wxUSE_STREAMS
|
2004-09-16 14:13:32 -04: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 12:57:08 -05:00
|
|
|
virtual bool DoCanRead(wxInputStream& stream);
|
|
|
|
#endif
|
2002-12-04 09:11:26 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxIFFHandler)
|
2002-01-15 12:57:08 -05:00
|
|
|
};
|
|
|
|
|
2002-01-17 14:40:18 -05:00
|
|
|
#endif // wxUSE_IMAGE && wxUSE_IFF
|
2002-01-15 12:57:08 -05:00
|
|
|
|
2002-01-17 14:40:18 -05:00
|
|
|
#endif // _WX_IMAGE_IFF_H_
|