]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imagbmp.h
Added project files for wxUniv under MSW
[wxWidgets.git] / include / wx / imagbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: imagbmp.h
3 // Purpose: wxImage BMP handler
4 // Author: Robert Roebling
5 // RCS-ID: $Id$
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_IMAGBMP_H_
11 #define _WX_IMAGBMP_H_
12
13 #ifdef __GNUG__
14 #pragma interface "imagbmp.h"
15 #endif
16
17 #include "wx/image.h"
18
19 // ----------------------------------------------------------------------------
20 // wxBMPHandler
21 // ----------------------------------------------------------------------------
22
23 class WXDLLEXPORT wxBMPHandler : public wxImageHandler
24 {
25 public:
26 wxBMPHandler()
27 {
28 m_name = _T("BMP file");
29 m_extension = _T("bmp");
30 m_type = wxBITMAP_TYPE_BMP;
31 m_mime = _T("image/bmp");
32 };
33
34 #if wxUSE_STREAMS
35 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
36
37 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 );
38 virtual bool DoCanRead( wxInputStream& stream );
39 #endif // wxUSE_STREAMS
40
41 DECLARE_DYNAMIC_CLASS(wxBMPHandler)
42 };
43
44
45 #endif
46 // _WX_IMAGBMP_H_
47