]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imagiff.h
wxThread::GetCurrentId for wxMac
[wxWidgets.git] / include / wx / imagiff.h
1 //
2 // imgiff.h - image handler for Amiga IFF images
3 // parts of the source taken by xv source code.
4 //
5 // (c) Steffen Gutmann, 2002
6 //
7 // Creation date: 08.01.2002
8 // Last modified: 08.01.2002
9 //
10
11 #ifndef WX_IMAGE_IFF_H
12 #define WX_IMAGE_IFF_H
13
14 #ifdef __GNUG__
15 #pragma interface "imagiff.h"
16 #endif
17
18 #include "wx/image.h"
19 #define wxUSE_IFF 1
20
21 //-----------------------------------------------------------------------------
22 // wxIFFHandler
23 //-----------------------------------------------------------------------------
24
25 #if wxUSE_IFF
26
27 class WXDLLEXPORT wxIFFHandler : public wxImageHandler
28 {
29 DECLARE_DYNAMIC_CLASS(wxIFFHandler)
30
31 public:
32
33 wxIFFHandler()
34 {
35 m_name = "IFF file";
36 m_extension = "iff";
37 m_type = wxBITMAP_TYPE_ANY;
38 // m_mime = "image/iff";
39 };
40
41 #if wxUSE_STREAMS
42 virtual bool LoadFile(wxImage *image, wxInputStream& stream,
43 bool verbose=TRUE, int index=0);
44 virtual bool SaveFile(wxImage *image, wxOutputStream& stream,
45 bool verbose=TRUE);
46 virtual bool DoCanRead(wxInputStream& stream);
47 #endif
48 };
49 #endif
50
51 #endif
52