1999-12-15 17:38:02 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: imagpcx.h
|
|
|
|
// Purpose: wxImage PCX handler
|
|
|
|
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// 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_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-12-15 17:38:02 -05:00
|
|
|
#pragma interface "imagpcx.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/image.h"
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxPCXHandler
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#if wxUSE_PCX
|
|
|
|
class WXDLLEXPORT wxPCXHandler : public wxImageHandler
|
|
|
|
{
|
|
|
|
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
|
2004-09-16 14:13:32 -04: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-12-04 09:11:26 -05:00
|
|
|
virtual bool DoCanRead( wxInputStream& stream );
|
1999-12-15 17:38:02 -05:00
|
|
|
#endif // wxUSE_STREAMS
|
2002-12-04 09:11:26 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPCXHandler)
|
1999-12-15 17:38:02 -05:00
|
|
|
};
|
|
|
|
#endif // wxUSE_PCX
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_IMAGPCX_H_
|
|
|
|
|