1999-12-15 17:38:02 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/imagpcx.h
|
1999-12-15 17:38:02 -05:00
|
|
|
// Purpose: wxImage PCX handler
|
|
|
|
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
|
|
|
|
// Copyright: (c) 1999 Guillermo Rodriguez Garcia
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1999-12-15 17:38:02 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_IMAGPCX_H_
|
|
|
|
#define _WX_IMAGPCX_H_
|
|
|
|
|
|
|
|
#include "wx/image.h"
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxPCXHandler
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#if wxUSE_PCX
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPCXHandler : public wxImageHandler
|
1999-12-15 17:38:02 -05:00
|
|
|
{
|
|
|
|
public:
|
2002-12-04 09:11:26 -05:00
|
|
|
inline wxPCXHandler()
|
|
|
|
{
|
|
|
|
m_name = wxT("PCX file");
|
|
|
|
m_extension = wxT("pcx");
|
|
|
|
m_type = wxBITMAP_TYPE_PCX;
|
|
|
|
m_mime = wxT("image/pcx");
|
|
|
|
}
|
1999-12-15 17:38:02 -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;
|
2006-02-08 16:47:09 -05:00
|
|
|
protected:
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual bool DoCanRead( wxInputStream& stream ) wxOVERRIDE;
|
1999-12-15 17:38:02 -05:00
|
|
|
#endif // wxUSE_STREAMS
|
2002-12-04 09:11:26 -05:00
|
|
|
|
|
|
|
private:
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxPCXHandler);
|
1999-12-15 17:38:02 -05:00
|
|
|
};
|
|
|
|
#endif // wxUSE_PCX
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_IMAGPCX_H_
|
|
|
|
|