]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagpcx.h
Make wxRichTextRectArray usable by other parts of wxRTC
[wxWidgets.git] / include / wx / imagpcx.h
CommitLineData
8f493002 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/imagpcx.h
8f493002
VS
3// Purpose: wxImage PCX handler
4// Author: Guillermo Rodriguez Garcia <guille@iies.es>
8f493002 5// Copyright: (c) 1999 Guillermo Rodriguez Garcia
65571936 6// Licence: wxWindows licence
8f493002
VS
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_IMAGPCX_H_
10#define _WX_IMAGPCX_H_
11
8f493002
VS
12#include "wx/image.h"
13
14
15//-----------------------------------------------------------------------------
16// wxPCXHandler
17//-----------------------------------------------------------------------------
18
19#if wxUSE_PCX
53a2db12 20class WXDLLIMPEXP_CORE wxPCXHandler : public wxImageHandler
8f493002 21{
8f493002 22public:
2b5f62a0
VZ
23 inline wxPCXHandler()
24 {
25 m_name = wxT("PCX file");
26 m_extension = wxT("pcx");
27 m_type = wxBITMAP_TYPE_PCX;
28 m_mime = wxT("image/pcx");
29 }
8f493002
VS
30
31#if wxUSE_STREAMS
7beb59f3
WS
32 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
33 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
6f02a879 34protected:
2b5f62a0 35 virtual bool DoCanRead( wxInputStream& stream );
8f493002 36#endif // wxUSE_STREAMS
2b5f62a0
VZ
37
38private:
39 DECLARE_DYNAMIC_CLASS(wxPCXHandler)
8f493002
VS
40};
41#endif // wxUSE_PCX
42
43
44#endif
45 // _WX_IMAGPCX_H_
46