]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagjpeg.h
Add wxDataViewRendererBase::GetEffectiveAlignment() and use it.
[wxWidgets.git] / include / wx / imagjpeg.h
CommitLineData
8f493002 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/imagjpeg.h
8f493002
VS
3// Purpose: wxImage JPEG handler
4// Author: Vaclav Slavik
8f493002 5// Copyright: (c) Vaclav Slavik
65571936 6// Licence: wxWindows licence
8f493002
VS
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_IMAGJPEG_H_
10#define _WX_IMAGJPEG_H_
11
2ecf902b 12#include "wx/defs.h"
89d38f8c 13
8f493002
VS
14//-----------------------------------------------------------------------------
15// wxJPEGHandler
16//-----------------------------------------------------------------------------
17
18#if wxUSE_LIBJPEG
2ecf902b
WS
19
20#include "wx/image.h"
ccec9093 21#include "wx/versioninfo.h"
2ecf902b 22
53a2db12 23class WXDLLIMPEXP_CORE wxJPEGHandler: public wxImageHandler
8f493002 24{
8f493002 25public:
2b5f62a0
VZ
26 inline wxJPEGHandler()
27 {
28 m_name = wxT("JPEG file");
29 m_extension = wxT("jpg");
ba4800d3
VZ
30 m_altExtensions.Add(wxT("jpeg"));
31 m_altExtensions.Add(wxT("jpe"));
2b5f62a0
VZ
32 m_type = wxBITMAP_TYPE_JPEG;
33 m_mime = wxT("image/jpeg");
34 }
8f493002 35
ccec9093
VZ
36 static wxVersionInfo GetLibraryVersionInfo();
37
8f493002 38#if wxUSE_STREAMS
7beb59f3
WS
39 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
40 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
6f02a879 41protected:
2b5f62a0 42 virtual bool DoCanRead( wxInputStream& stream );
8f493002 43#endif
2b5f62a0
VZ
44
45private:
46 DECLARE_DYNAMIC_CLASS(wxJPEGHandler)
8f493002 47};
2ecf902b
WS
48
49#endif // wxUSE_LIBJPEG
8f493002 50
fe9308c6 51#endif // _WX_IMAGJPEG_H_
8f493002 52