Added PCX Handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
#include "wx/bitmap.h"
|
#include "wx/bitmap.h"
|
||||||
|
|
||||||
#if wxUSE_STREAMS
|
#if wxUSE_STREAMS
|
||||||
#include "wx/stream.h"
|
# include "wx/stream.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -36,6 +36,9 @@ class WXDLLEXPORT wxPNGHandler;
|
|||||||
class WXDLLEXPORT wxJPEGHandler;
|
class WXDLLEXPORT wxJPEGHandler;
|
||||||
#endif
|
#endif
|
||||||
class WXDLLEXPORT wxBMPHandler;
|
class WXDLLEXPORT wxBMPHandler;
|
||||||
|
class WXDLLEXPORT wxGIFHandler;
|
||||||
|
class WXDLLEXPORT wxPNMHandler;
|
||||||
|
class WXDLLEXPORT wxPCXHandler;
|
||||||
class WXDLLEXPORT wxImage;
|
class WXDLLEXPORT wxImage;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -202,6 +205,31 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxPCXHandler
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class WXDLLEXPORT wxPCXHandler : public wxImageHandler
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxPCXHandler)
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
inline wxPCXHandler()
|
||||||
|
{
|
||||||
|
m_name = "PCX file";
|
||||||
|
m_extension = "pcx";
|
||||||
|
m_type = wxBITMAP_TYPE_PCX;
|
||||||
|
m_mime = "image/pcx";
|
||||||
|
};
|
||||||
|
|
||||||
|
#if wxUSE_STREAMS
|
||||||
|
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE );
|
||||||
|
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||||
|
virtual bool CanRead( wxInputStream& stream );
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// wxImage
|
// wxImage
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user