]>
Commit | Line | Data |
---|---|---|
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 | virtual bool DoCanRead( wxInputStream& stream ); | |
36 | #endif // wxUSE_STREAMS | |
37 | ||
38 | private: | |
39 | DECLARE_DYNAMIC_CLASS(wxPCXHandler) | |
40 | }; | |
41 | #endif // wxUSE_PCX | |
42 | ||
43 | ||
44 | #endif | |
45 | // _WX_IMAGPCX_H_ | |
46 |