1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxXPMDecoder, XPM reader for wxImage and wxBitmap
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_XPMDECOD_H_
11 #define _WX_XPMDECOD_H_
13 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
14 #pragma interface "xpmdecod.h"
20 class WXDLLEXPORT wxImage
;
21 class WXDLLEXPORT wxInputStream
;
23 // --------------------------------------------------------------------------
25 // --------------------------------------------------------------------------
27 class WXDLLEXPORT wxXPMDecoder
30 // constructor, destructor, etc.
35 // Is the stream XPM file?
36 bool CanRead(wxInputStream
& stream
);
37 // Read XPM file from the stream, parse it and create image from it
38 wxImage
ReadFile(wxInputStream
& stream
);
40 // Read directly from XPM data (as passed to wxBitmap ctor):
41 wxImage
ReadData(const char **xpm_data
);
45 #endif // _WX_GIFDECOD_H_