]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/imagtga.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImage TGA handler
4 // Author: Seth Jackson
6 // Copyright: (c) 2005 Seth Jackson
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_IMAGTGA_H_
11 #define _WX_IMAGTGA_H_
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
21 class WXDLLEXPORT wxTGAHandler
: public wxImageHandler
26 m_name
= wxT("TGA file");
27 m_extension
= wxT("tga");
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
,
37 virtual bool DoCanRead(wxInputStream
& stream
);
38 #endif // wxUSE_STREAMS
41 DECLARE_DYNAMIC_CLASS(wxTGAHandler
)
46 #endif // _WX_IMAGTGA_H_