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
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_IMAGE_IFF_H_
|
|
|
|
#define _WX_IMAGE_IFF_H_
|
2002-01-15 12:57:08 -05:00
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2002-01-15 12:57:08 -05:00
|
|
|
#pragma interface "imagiff.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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
|
2002-01-17 14:40:18 -05: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_
|