1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImage TGA handler
4 // Author: Seth Jackson
5 // Copyright: (c) 2005 Seth Jackson
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 #define _WX_IMAGTGA_H_
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxTGAHandler
: public wxImageHandler
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");
33 virtual bool LoadFile(wxImage
* image
, wxInputStream
& stream
,
34 bool verbose
= true, int index
= -1);
35 virtual bool SaveFile(wxImage
* image
, wxOutputStream
& stream
,
38 virtual bool DoCanRead(wxInputStream
& stream
);
39 #endif // wxUSE_STREAMS
41 DECLARE_DYNAMIC_CLASS(wxTGAHandler
)
46 #endif // _WX_IMAGTGA_H_