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