2002-01-17 19:40:18 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/imagiff.h
|
2002-01-17 19:40:18 +00:00
|
|
|
// Purpose: wxImage handler for Amiga IFF images
|
|
|
|
// Author: Steffen Gutmann
|
|
|
|
// Copyright: (c) Steffen Gutmann, 2002
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows 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
|
|
|
|
|
|
|
#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
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxIFFHandler : public wxImageHandler
|
2002-01-15 17:57:08 +00:00
|
|
|
{
|
|
|
|
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
|
2014-03-30 00:02:23 +00: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 06:20:23 +00:00
|
|
|
protected:
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual bool DoCanRead(wxInputStream& stream) wxOVERRIDE;
|
2002-01-15 17:57:08 +00:00
|
|
|
#endif
|
2002-12-04 14:11:26 +00:00
|
|
|
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_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_
|