]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagtga.h
OSX adaptions
[wxWidgets.git] / include / wx / imagtga.h
CommitLineData
3af706cc 1/////////////////////////////////////////////////////////////////////////////
ce7208d4 2// Name: wx/imagtga.h
3af706cc
VZ
3// Purpose: wxImage TGA handler
4// Author: Seth Jackson
3af706cc
VZ
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
53a2db12 20class WXDLLIMPEXP_CORE wxTGAHandler : public wxImageHandler
3af706cc
VZ
21{
22public:
23 wxTGAHandler()
24 {
25 m_name = wxT("TGA file");
26 m_extension = wxT("tga");
ba4800d3 27 m_altExtensions.Add(wxT("tpic"));
3af706cc
VZ
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);
3498362e 37protected:
3af706cc
VZ
38 virtual bool DoCanRead(wxInputStream& stream);
39#endif // wxUSE_STREAMS
40
3af706cc
VZ
41 DECLARE_DYNAMIC_CLASS(wxTGAHandler)
42};
43
44#endif // wxUSE_TGA
45
46#endif // _WX_IMAGTGA_H_