]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagjpeg.h
Unrevert Cygwin changes after discussion. Cygwin will be unix with the new
[wxWidgets.git] / include / wx / imagjpeg.h
CommitLineData
8f493002
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: imagjpeg.h
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
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
8f493002
VS
14#pragma interface "imagjpeg.h"
15#endif
16
2ecf902b 17#include "wx/defs.h"
89d38f8c 18
8f493002
VS
19//-----------------------------------------------------------------------------
20// wxJPEGHandler
21//-----------------------------------------------------------------------------
22
23#if wxUSE_LIBJPEG
2ecf902b
WS
24
25#include "wx/image.h"
26
8f493002
VS
27class WXDLLEXPORT wxJPEGHandler: public wxImageHandler
28{
8f493002 29public:
2b5f62a0
VZ
30 inline wxJPEGHandler()
31 {
32 m_name = wxT("JPEG file");
33 m_extension = wxT("jpg");
34 m_type = wxBITMAP_TYPE_JPEG;
35 m_mime = wxT("image/jpeg");
36 }
8f493002
VS
37
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 );
2b5f62a0 41 virtual bool DoCanRead( wxInputStream& stream );
8f493002 42#endif
2b5f62a0
VZ
43
44private:
45 DECLARE_DYNAMIC_CLASS(wxJPEGHandler)
8f493002 46};
2ecf902b
WS
47
48#endif // wxUSE_LIBJPEG
8f493002 49
fe9308c6 50#endif // _WX_IMAGJPEG_H_
8f493002 51