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