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