imagjpg.h
00001 #ifndef _WX_IMAGJPG_H_
00002 #define _WX_IMAGJPG_H_
00003
00004 #if defined(__GNUG__) && !defined(__APPLE__)
00005 #pragma interface "imagjpg.h"
00006 #endif
00007
00008 #include "wx/image.h"
00009
00010
00011
00012
00013
00014 #if wxUSE_LIBJPEG
00015 class WXDLLEXPORT wxJPGHandler: public wxImageHandler
00016 {
00017 public:
00018 inline wxJPGHandler()
00019 {
00020 m_name = wxT("JPEG file");
00021 m_extension = wxT("jpg");
00022 m_type = wxBITMAP_TYPE_JPEG;
00023 m_mime = wxT("image/jpeg");
00024 }
00025
00026 #if wxUSE_STREAMS
00027 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
00028 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
00029 virtual bool DoCanRead( wxInputStream& stream );
00030 #endif
00031
00032 private:
00033 DECLARE_DYNAMIC_CLASS(wxJPGHandler)
00034 };
00035 #endif
00036
00037
00038 bool LoadImageFile(wxImage& img, wxInputStream& stream,
00039 long type = wxBITMAP_TYPE_ANY, int index = -1);
00040 bool LoadImageFile(wxImage& img, const wxString& filename,
00041 long type = wxBITMAP_TYPE_ANY, int index = -1);
00042
00043 #endif
00044
00045
Generated on Mon Nov 19 21:06:44 2007 for wxVillaLib by
1.3.7