2002-01-17 14:40:18 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/imagiff.h
|
2002-01-17 14:40:18 -05:00
|
|
|
// Purpose: wxImage handler for Amiga IFF images
|
|
|
|
// Author: Steffen Gutmann
|
|
|
|
// 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
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxIFFHandler : public wxImageHandler
|
2002-01-15 12:57:08 -05:00
|
|
|
{
|
|
|
|
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
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual bool LoadFile(wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1) wxOVERRIDE;
|
|
|
|
virtual bool SaveFile(wxImage *image, wxOutputStream& stream, bool verbose=true) wxOVERRIDE;
|
2007-10-26 02:20:23 -04:00
|
|
|
protected:
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual bool DoCanRead(wxInputStream& stream) wxOVERRIDE;
|
2002-01-15 12:57:08 -05:00
|
|
|
#endif
|
2002-12-04 09:11:26 -05:00
|
|
|
|
|
|
|
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_
|