]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imagbmp.h
More wxFrame updates
[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 DECLARE_DYNAMIC_CLASS(wxBMPHandler)
26
27 public:
28
29 inline wxBMPHandler()
30 {
31 m_name = "BMP file";
32 m_extension = "bmp";
33 m_type = wxBITMAP_TYPE_BMP;
34 m_mime = "image/bmp";
35 };
36
37 #if wxUSE_STREAMS
38 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 );
39 virtual bool DoCanRead( wxInputStream& stream );
40 #endif
41 };
42
43
44 #endif
45 // _WX_IMAGBMP_H_
46