]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagtga.h
Dramatically optimise inserting many items in wxGenericListCtrl.
[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
5// RCS-ID: $Id$
6// Copyright: (c) 2005 Seth Jackson
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_IMAGTGA_H_
11#define _WX_IMAGTGA_H_
12
13#include "wx/image.h"
14
15//-----------------------------------------------------------------------------
16// wxTGAHandler
17//-----------------------------------------------------------------------------
18
19#if wxUSE_TGA
20
53a2db12 21class WXDLLIMPEXP_CORE wxTGAHandler : public wxImageHandler
3af706cc
VZ
22{
23public:
24 wxTGAHandler()
25 {
26 m_name = wxT("TGA file");
27 m_extension = wxT("tga");
ba4800d3 28 m_altExtensions.Add(wxT("tpic"));
3af706cc
VZ
29 m_type = wxBITMAP_TYPE_TGA;
30 m_mime = wxT("image/tga");
31 }
32
33#if wxUSE_STREAMS
34 virtual bool LoadFile(wxImage* image, wxInputStream& stream,
35 bool verbose = true, int index = -1);
36 virtual bool SaveFile(wxImage* image, wxOutputStream& stream,
37 bool verbose = true);
3498362e 38protected:
3af706cc
VZ
39 virtual bool DoCanRead(wxInputStream& stream);
40#endif // wxUSE_STREAMS
41
3af706cc
VZ
42 DECLARE_DYNAMIC_CLASS(wxTGAHandler)
43};
44
45#endif // wxUSE_TGA
46
47#endif // _WX_IMAGTGA_H_