]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imagtga.h
wxRTC: fixed guidelines overwriting adjacent cell borders; corrected capitalisation...
[wxWidgets.git] / include / wx / imagtga.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/imagtga.h
3 // Purpose: wxImage TGA handler
4 // Author: Seth Jackson
5 // Copyright: (c) 2005 Seth Jackson
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _WX_IMAGTGA_H_
10 #define _WX_IMAGTGA_H_
11
12 #include "wx/image.h"
13
14 //-----------------------------------------------------------------------------
15 // wxTGAHandler
16 //-----------------------------------------------------------------------------
17
18 #if wxUSE_TGA
19
20 class WXDLLIMPEXP_CORE wxTGAHandler : public wxImageHandler
21 {
22 public:
23 wxTGAHandler()
24 {
25 m_name = wxT("TGA file");
26 m_extension = wxT("tga");
27 m_altExtensions.Add(wxT("tpic"));
28 m_type = wxBITMAP_TYPE_TGA;
29 m_mime = wxT("image/tga");
30 }
31
32 #if wxUSE_STREAMS
33 virtual bool LoadFile(wxImage* image, wxInputStream& stream,
34 bool verbose = true, int index = -1);
35 virtual bool SaveFile(wxImage* image, wxOutputStream& stream,
36 bool verbose = true);
37 protected:
38 virtual bool DoCanRead(wxInputStream& stream);
39 #endif // wxUSE_STREAMS
40
41 DECLARE_DYNAMIC_CLASS(wxTGAHandler)
42 };
43
44 #endif // wxUSE_TGA
45
46 #endif // _WX_IMAGTGA_H_