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_
14 #pragma interface "xpmdecod.h"
19 #if wxUSE_IMAGE && wxUSE_XPM
21 class WXDLLEXPORT wxImage
;
22 class WXDLLEXPORT wxInputStream
;
24 // --------------------------------------------------------------------------
26 // --------------------------------------------------------------------------
28 class WXDLLEXPORT wxXPMDecoder
31 // constructor, destructor, etc.
36 // Is the stream XPM file?
37 bool CanRead(wxInputStream
& stream
);
38 // Read XPM file from the stream, parse it and create image from it
39 wxImage
ReadFile(wxInputStream
& stream
);
41 // Read directly from XPM data (as passed to wxBitmap ctor):
42 wxImage
ReadData(const char **xpm_data
);
46 #endif // wxUSE_IMAGE && wxUSE_XPM
47 #endif // _WX_GIFDECOD_H_