]>
Commit | Line | Data |
---|---|---|
8f493002 VS |
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 | |
65571936 | 7 | // Licence: wxWindows licence |
8f493002 VS |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef _WX_IMAGPCX_H_ | |
11 | #define _WX_IMAGPCX_H_ | |
12 | ||
8f493002 VS |
13 | #include "wx/image.h" |
14 | ||
15 | ||
16 | //----------------------------------------------------------------------------- | |
17 | // wxPCXHandler | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
20 | #if wxUSE_PCX | |
21 | class WXDLLEXPORT wxPCXHandler : public wxImageHandler | |
22 | { | |
8f493002 | 23 | public: |
2b5f62a0 VZ |
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 | } | |
8f493002 VS |
31 | |
32 | #if wxUSE_STREAMS | |
7beb59f3 WS |
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 ); | |
2b5f62a0 | 35 | virtual bool DoCanRead( wxInputStream& stream ); |
8f493002 | 36 | #endif // wxUSE_STREAMS |
2b5f62a0 VZ |
37 | |
38 | private: | |
39 | DECLARE_DYNAMIC_CLASS(wxPCXHandler) | |
8f493002 VS |
40 | }; |
41 | #endif // wxUSE_PCX | |
42 | ||
43 | ||
44 | #endif | |
45 | // _WX_IMAGPCX_H_ | |
46 |